From 886d6d3492b9188f508499fd95501a97c2dbef74 Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 30 Jun 2009 03:00:09 +0000 Subject: [PATCH] Treat SRU queries as UTF8 input. Resolves a problem whereby any non-ASCII input in SRU queries resulted in searches for corrupted strings (and consequently 0 hits) git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@13488 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm index 16f23e616c..b3817c89e4 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm @@ -1608,8 +1608,8 @@ sub sru_search { my ($shortname, $holdings) = $url =~ m#/?([^/]*)(/holdings)?#; if ( $resp->type eq 'searchRetrieve' ) { - my $cql_query = $req->query; - my $search_string = $req->cql->toEvergreen; + my $cql_query = decode_utf8($req->query); + my $search_string = decode_utf8($req->cql->toEvergreen); # Ensure the search string overrides the default site if ($shortname and $search_string !~ m#site:#) { -- 2.11.0