Skip to content

Commit c17ea82

Browse files
author
Till Brehm
committed
Fixed #4894 XSS vulnerability in global search
1 parent 79d6be9 commit c17ea82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/web/dashboard/ajax_get_json.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ function _search($module, $section, $additional_sql = '', $params = ''){
189189

190190
$sql = "SELECT * FROM ?? WHERE ".$where_clause.$authsql.$order_clause." LIMIT 0,10";
191191
$results = $app->db->queryAllRecords($sql, $db_table);
192+
$results = $app->functions->htmlentities($results);
192193

193194
if(is_array($results) && !empty($results)){
194195
$lng_file = '../'.$module.'/lib/lang/'.$_SESSION['s']['language'].'_'.$section.'.lng';

0 commit comments

Comments
 (0)