Skip to content
Snippets Groups Projects
Unverified Commit fb603a3f authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4160 from JediKev/issue/xss-agent-directory

xss: Prevent Agent Directory XSS
parents c222fad2 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