Fixing a XSS - vulnerability discovered by tomreyn
Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
@@ -38,7 +38,7 @@ return array(
|
||||
'category' => array(
|
||||
'label' => $lng['ticket']['category'],
|
||||
'type' => 'label',
|
||||
'value' => $row['name']
|
||||
'value' => htmlentities($row['name']),
|
||||
),
|
||||
'message' => array(
|
||||
'style' => 'vertical-align:top;',
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
*/
|
||||
|
||||
function htmlentities_array($subject, $fields = '', $quote_style = ENT_COMPAT, $charset = 'ISO-8859-1')
|
||||
function htmlentities_array($subject, $fields = '', $quote_style = ENT_QUOTES, $charset = 'ISO-8859-1')
|
||||
{
|
||||
if(is_array($subject))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user