Hi Andreas,
> [...]
> I was talking about the Java backend (since Peter mentioned that other
> backends should also be checked for the problem).
>
> Regarding the PHP code, maybe the Java backend could serve as
> inspiration for a fix? The code that deals with string parsing looks
> like this:
>
> public String nextString(char quote) throws ParseException {
> char c;
> StringBuffer sb = new StringBuffer();
> while (true) {
> c = next();
> switch (c) {
> case 0:
> case '\n':
> case '\r':
> throw syntaxError("Unterminated string");
> case '\\':
> [...]
> }
> }
>
> The code originally comes from json.org, and it looks simple and clean
> to me. However, I haven't looked at the PHP backend code (and I don't
> know PHP very well), so something like the above might not be
> applicable.
Yeah, you're right. I was looking at that, too. There is a similar part of code
in the PHP implementation...
Therefore I am currently looking at some other place in the JSON.phps file. The
regular expression in line 522 might be too strict...
> Regards,
>
> Andreas
Thanks for the hint,
Peter
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel