summaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/index.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 73bf1e3..5da40a6 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -31,7 +31,8 @@ sub get_results {
default_expires => "${expiry} sec",
);
- my $sstr = ( $backend eq 'db' ? "${stop}, ${city}" : "${city} _ ${stop}" );
+ my $sstr = ( "${backend} _ ${stop} _ ${city}" );
+ $sstr =~ tr{a-zA-Z0-9}{_}c;
my $results = $cache->thaw($sstr);