Skip to content

Commit

Permalink
Filter tags to avoid HTML rendering in returned display (and the quic…
Browse files Browse the repository at this point in the history
…k search doesn't handle html search in any event).
  • Loading branch information
collectiveaccess committed Sep 25, 2021
1 parent aaf573e commit 8ef8885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/find/QuickSearchController.php
Expand Up @@ -56,7 +56,7 @@ public function __construct(&$po_request, &$po_response, $pa_view_paths=null) {
*
*/
public function Index($pa_options=null) {
$ps_search = $this->request->getParameter('search', pString, null, ['forcePurify' => true]);
$ps_search = strip_tags($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'); }
Expand Down

0 comments on commit 8ef8885

Please sign in to comment.