From 677b916ba8cdfcaab2ad96d9e94b93d7648cf53b Mon Sep 17 00:00:00 2001 From: berick Date: Thu, 21 Apr 2011 10:03:55 -0400 Subject: [PATCH] if no query is sent in the search, return the user to the referring page --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index 5f8643a623..50a09f1c79 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -120,6 +120,8 @@ sub load_rresults { my ($query, $site, $depth) = _prepare_biblio_search($cgi, $ctx); + return $self->generic_redirect unless $query; + # Limit and offset will stay here. Everything else should be part of # the query string, not special args. my $args = {'limit' => $limit, 'offset' => $offset}; -- 2.11.0