Changeset 323


Ignore:
Timestamp:
Nov 5, 2006, 12:30:00 PM (13 years ago)
Author:
Nick Burch
Message:

Escape properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/get-reports.fcgi

    r322 r323  
    117117                foreach my $row (@rows) {
    118118                        my ($postcode,$outward,$inward,$easting,$northing,$id,$source,$reason,$reporter,$reported_time) = @$row;
     119                        # Escape the reason and email
     120                        $reason =~ s/'/"/;
     121                        $reporter =~ s/'/"/;
     122
    119123            print "addReport($id, '$postcode', $easting, $northing, [$source], ['$reason','$reporter','$reported_time']);\n";
    120124        }
Note: See TracChangeset for help on using the changeset viewer.