aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xweb/ajax.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi
index ca558c17a..43f1f16d8 100755
--- a/web/ajax.cgi
+++ b/web/ajax.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: ajax.cgi,v 1.6 2008-10-17 20:19:05 matthew Exp $
+# $Id: ajax.cgi,v 1.7 2008-12-03 18:11:55 matthew Exp $
use strict;
use Standard;
@@ -68,9 +68,9 @@ sub main {
print $q->header(-charset => 'utf-8', -content_type => 'text/javascript');
$pins =~ s/'/\'/g;
- $om_list =~ s/'/\'/g;
- $am_list =~ s/'/\'/g;
- #$f_list =~ s/'/\'/g;
+ $om_list =~ s/'/\\'/g;
+ $am_list =~ s/'/\\'/g;
+ #$f_list =~ s/'/\\'/g;
print <<EOF;
({
'pins': '$pins',