summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-02-03 19:21:05 +0100
committerDaniel Friesel <derf@finalrewind.org>2012-02-03 19:21:05 +0100
commitba54963eb0f96ae20033be8a8e7a2568849b3176 (patch)
treea13bd9fb1305080bdd1b33b6585d4c7cfe7dfdf9
parentebd4c6d82711cbdfd96e72fc2c40c92be9fd200b (diff)
index.pl: Try to avoid UTF8 cache fnords
-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);