Re: [Asterisk-java-devel] org.asteriskjava.fastagi.internal.AgiReaderImpl doesn't haven't multiline
Brought to you by:
srt
From: Steve P. <sp...@ge...> - 2006-12-27 22:30:28
|
Stefan Reuter wrote: > Any ideas? > > =Stefan I would suggest that for the beginning we assume that quotes within a variable value are not allowed and we don't have to deal with them - no need to fight that battle before we have to. Therefore life becomes more simple - you can start reading a value and simply cross newline borders until you find the next close quote. Any newlines encountered would be returned as part of the value. I don't know if there are any valid multiline responses to any queries besides the error one that's already there and now the result of getvariable which could be coded as a special case as well, so as long as the manager interface is using different queries it wouldn't be affected. If quotes really do start showing up anyplace in variable values, then we'll have to deal with it then, but this is a step in the right direction I think. Steve |