Closes #118 Fix critical XSS vulnerability
This commit is contained in:
parent
aa051b76e8
commit
1aeb19539f
@ -859,7 +859,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
<i class="fa fa-check-circle"></i> '.$hesklang['open_action'].'</a>';
|
<i class="fa fa-check-circle"></i> '.$hesklang['open_action'].'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$linkText = 'new_ticket.php?name='.$ticket['name'].'&email='.$ticket['email'].'&catid='.$category['id'].'&priority='.$ticket['priority'];
|
$strippedName = strip_tags($ticket['name']);
|
||||||
|
$strippedEmail = strip_tags($ticket['email']);
|
||||||
|
$linkText = 'new_ticket.php?name='.$strippedName.'&email='.$strippedEmail.'&catid='.$category['id'].'&priority='.$ticket['priority'];
|
||||||
foreach ($hesk_settings['custom_fields'] as $k=>$v)
|
foreach ($hesk_settings['custom_fields'] as $k=>$v)
|
||||||
{
|
{
|
||||||
if ($v['use'] == 1)
|
if ($v['use'] == 1)
|
||||||
@ -871,7 +873,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
} else {
|
} else {
|
||||||
$value = $ticket[$k];
|
$value = $ticket[$k];
|
||||||
}
|
}
|
||||||
$linkText .= '&c_'.$k.'='.$value;
|
$strippedCustomField = strip_tags($value);
|
||||||
|
$linkText .= '&c_'.$k.'='.$strippedCustomField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user