# HG changeset patch # User Dan # Date 1238897909 14400 # Node ID b624c55ab7719f406a038348ebfcc3f8c39f3451 # Parent 7e933a5c860b7080c4f0cd5494d38c79597460bd Whoops! JSON parser Unicode escape sequence typo. diff -r 7e933a5c860b -r b624c55ab771 includes/json2.php --- a/includes/json2.php Sat Apr 04 22:17:32 2009 -0400 +++ b/includes/json2.php Sat Apr 04 22:18:29 2009 -0400 @@ -775,6 +775,7 @@ break; case 'u': $result .= self::decode_unicode_byte(substr($str, $i + 1, 4)); + $i += 4; break; default: throw new Zend_Json_Exception("Illegal escape " @@ -941,6 +942,8 @@ . chr((($value & 0x0fc0) >> 6) | 0x80) . chr(($value & 0x3f) | 0x80); } + + return $character; } }