diff options
author | Urban Müller | 2013-01-31 18:24:31 +0000 |
---|---|---|
committer | Urban Müller | 2013-01-31 18:24:31 +0000 |
commit | 796f9d6690e3f2ff0dc01ab113529143e137fbe1 (patch) | |
tree | 9d50b83e2098f3f2f0641266aa00309cb5441d83 /itjs.class | |
parent | ca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73 (diff) | |
download | itools-796f9d6690e3f2ff0dc01ab113529143e137fbe1.tar.gz itools-796f9d6690e3f2ff0dc01ab113529143e137fbe1.tar.bz2 itools-796f9d6690e3f2ff0dc01ab113529143e137fbe1.zip |
it::serialize must quote ' in keys
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ static function encode($values) if ($texts[2]) { if ($jskeyword[$key] || !preg_match('/^[a-z_]\w*$/i', $key)) - $key = "'$key'"; + $key = "'" . addslashes($key) . "'"; $result .= "$key:"; } |