Changeset 3925:7ce8aa72db97
- Timestamp:
 - 11/12/18 11:38:15 (7 years ago)
 - Branch:
 - default
 - File:
 - 
          
- 1 edited
 
- 
          inc/public/lib.urlhandlers.php (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
inc/public/lib.urlhandlers.php
r3924 r3925 239 239 $core->url->type = 'search'; 240 240 241 $GLOBALS['_search'] = !empty($_GET['q']) ? rawurldecode($_GET['q']) : '';241 $GLOBALS['_search'] = !empty($_GET['q']) ? html::escapeHTML(rawurldecode($_GET['q'])) : ''; 242 242 if ($GLOBALS['_search']) { 243 // Sanitize search string244 $GLOBALS['_search'] = filter_var($GLOBALS['_search'], FILTER_SANITIZE_SPECIAL_CHARS);245 243 $params = new ArrayObject(['search' => $GLOBALS['_search']]); 246 244 $core->callBehavior('publicBeforeSearchCount', $params);  
Note: See TracChangeset
          for help on using the changeset viewer.
      