Skip to content
Snippets Groups Projects
Commit 134bb2de authored by aydreeihn's avatar aydreeihn
Browse files

Merge remote-tracking branch 'kevin/issue/xss-agent-directory' into features_prs/develop-next

* kevin/issue/xss-agent-directory:
  xss: Prevent Agent Directory XSS
parents 74b7c6fb 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