summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 79158f6..e8284ce 100644
--- a/itjs.class
+++ b/itjs.class
@@ -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:";
}