Skip to content

Commit

Permalink
Filter quicksearch input
Browse files Browse the repository at this point in the history
  • Loading branch information
collectiveaccess committed Sep 24, 2021
1 parent 35fb6c3 commit c89441e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/find/QuickSearchController.php
Expand Up @@ -7,7 +7,7 @@
* ----------------------------------------------------------------------
*
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
* Copyright 2009-2017 Whirl-i-Gig
* Copyright 2009-2021 Whirl-i-Gig
*
* For more information visit http://www.CollectiveAccess.org
*
Expand Down Expand Up @@ -56,8 +56,8 @@ public function __construct(&$po_request, &$po_response, $pa_view_paths=null) {
*
*/
public function Index($pa_options=null) {
$ps_search = $this->request->getParameter('search', pString);
$ps_sort = $this->request->getParameter('sort', pString);
$ps_search = $this->request->getParameter('search', pString, null, ['forcePurify' => true]);
$ps_sort = $this->request->getParameter('sort', pString, null, ['forcePurify' => true]);

if (!$ps_search) { $ps_search = Session::getVar('quick_search_last_search'); }
if (!in_array($ps_sort, array('name', 'idno', 'relevance'))) {
Expand Down

0 comments on commit c89441e

Please sign in to comment.