andreiDamoc / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

Hash in trip_id (trips.txt) raises exception while using ScheduleViewer #265

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
using a trip_id containing a Hash # raises exception while using ScheduleViewer:
e.g. trip_id=LILLE_TRAM_T#a

problem seems to be caused by the creation of the url for displaying the trip 
rows (index.html, line 619):
html += svgTag("/ttablegraph?height=100&trip=" + tripId, "height='115' 
width='100%'");

it should probably be:
html += svgTag("/ttablegraph?height=100&trip=" + encodeURIComponent(tripId), 
"height='115' width='100%'");

Original issue reported on code.google.com by n...@google.com on 19 Nov 2010 at 10:43

GoogleCodeExporter commented 8 years ago
the problem is fixed and the change has been submitted to trunk
see http://codereview.appspot.com/3179042/

Original comment by n...@google.com on 25 Nov 2010 at 8:23