Skip to content
Snippets Groups Projects
Commit 38bf5167 authored by JediKev's avatar JediKev
Browse files

Merge branch 'issue/xss-agent-directory' into release/v1.10.2

* issue/xss-agent-directory:
  xss: Prevent Agent Directory XSS
parents be0133b0 36651b91
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,10 @@ $qs = array();
$agents = Staff::objects()
->select_related('dept');
// Sanitize 'order' param To Escape XSS
if ($_REQUEST['order'])
$_REQUEST['order'] = Format::sanitize($_REQUEST['order']);
if($_REQUEST['q']) {
$searchTerm=$_REQUEST['q'];
if($searchTerm){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment