aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xweb/ajax.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi
index 43f1f16d8..c55e4563c 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.7 2008-12-03 18:11:55 matthew Exp $
+# $Id: ajax.cgi,v 1.8 2008-12-03 18:21:22 matthew Exp $
use strict;
use Standard;
@@ -67,7 +67,7 @@ sub main {
print $q->header(-charset => 'utf-8', -content_type => 'text/javascript');
- $pins =~ s/'/\'/g;
+ $pins =~ s/'/\\'/g;
$om_list =~ s/'/\\'/g;
$am_list =~ s/'/\\'/g;
#$f_list =~ s/'/\\'/g;