From: dbs Date: Tue, 30 Jun 2009 03:00:09 +0000 (+0000) Subject: Treat SRU queries as UTF8 input. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=886d6d3492b9188f508499fd95501a97c2dbef74;p=working%2FEvergreen.git 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 --- 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:#) {