aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorlouise <louise>2009-12-15 17:53:52 +0000
committerlouise <louise>2009-12-15 17:53:52 +0000
commitb82b07ff126d42ddf2c30aa02d75cc71e95db715 (patch)
tree41f735103e93e861ed9a2b069c46fe5e6e943377 /web
parent7bad6fb5e67eae50ff7bbb8c9ff6380de46c7b70 (diff)
Entity encoding
Diffstat (limited to 'web')
-rwxr-xr-xweb/ajax.cgi6
-rwxr-xr-xweb/index.cgi6
2 files changed, 6 insertions, 6 deletions
diff --git a/web/ajax.cgi b/web/ajax.cgi
index 868390b80..1b3ff5cf8 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.18 2009-12-10 11:51:17 louise Exp $
+# $Id: ajax.cgi,v 1.19 2009-12-15 17:53:52 louise Exp $
use strict;
use Standard;
@@ -50,7 +50,7 @@ sub main {
all_pins => undef,
no_pins => undef), $q);
$list .= '<li><a href="' . $link . '">';
- $list .= $_->{title};
+ $list .= ent($_->{title});
$list .= '</a>';
$list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
$list .= '</li>';
@@ -69,7 +69,7 @@ sub main {
all_pins => undef,
no_pins => undef), $q);
$list .= '<li><a href="' . $link . '">';
- $list .= $_->{title} . ' <small>(' . int($_->{distance}/100+.5)/10 . 'km)</small>';
+ $list .= ent($_->{title}) . ' <small>(' . int($_->{distance}/100+.5)/10 . 'km)</small>';
$list .= '</a>';
$list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
$list .= '</li>';
diff --git a/web/index.cgi b/web/index.cgi
index 0dcdd151c..7153f0bd4 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: index.cgi,v 1.332 2009-12-15 14:55:53 louise Exp $
+# $Id: index.cgi,v 1.333 2009-12-15 17:53:52 louise Exp $
use strict;
use Standard;
@@ -848,7 +848,7 @@ sub display_location {
my $report_url = NewURL($q, -retain => 1, -url => '/report/' . $_->{id}, pc => undef, x => undef, 'y' => undef);
$report_url = Cobrand::url($cobrand, $report_url, $q);
$on_list .= '<li><a href="' . $report_url . '">';
- $on_list .= $_->{title};
+ $on_list .= ent($_->{title});
$on_list .= '</a>';
$on_list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
$on_list .= '</li>';
@@ -862,7 +862,7 @@ sub display_location {
$around_list .= '<li><a href="' . $report_url . '">';
my $dist = int($_->{distance}/100+0.5);
$dist = $dist / 10;
- $around_list .= $_->{title} . ' <small>(' . $dist . 'km)</small>';
+ $around_list .= ent($_->{title}) . ' <small>(' . $dist . 'km)</small>';
$around_list .= '</a>';
$around_list .= ' <small>' . _('(fixed)') . '</small>' if $_->{state} eq 'fixed';
$around_list .= '</li>';