diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-02-03 19:21:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-02-03 19:21:05 +0100 |
commit | ba54963eb0f96ae20033be8a8e7a2568849b3176 (patch) | |
tree | a13bd9fb1305080bdd1b33b6585d4c7cfe7dfdf9 /cgi | |
parent | ebd4c6d82711cbdfd96e72fc2c40c92be9fd200b (diff) |
index.pl: Try to avoid UTF8 cache fnords
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/index.pl | 3 |
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); |