diff options
Diffstat (limited to 'lib/javascript/search-data.php')
-rw-r--r-- | lib/javascript/search-data.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/javascript/search-data.php b/lib/javascript/search-data.php index 11ef68d9..18432454 100644 --- a/lib/javascript/search-data.php +++ b/lib/javascript/search-data.php @@ -29,7 +29,9 @@ function arrayToJSON($array) { $json .= arrayToJSON($value); } else { - $json .= '"' . $value . '"'; + // Make sure to strip backslashes and convert things to + // entities in our output + $json .= '"' . scrub_out(str_replace('\\', '', $value)) . '"'; } $json .= ' , '; } |