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

Merge pull request #4202 from JediKev/issue/ajax-reflected-xss

issue: AJAX Reflected XSS
parents c11840f8 e919d8a6
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,9 @@ class DynamicFormsAjaxAPI extends AjaxController {
}
function getFormsForHelpTopic($topic_id, $client=false) {
if (!$_SERVER['HTTP_REFERER'])
Http::response(403, 'Forbidden.');
if (!($topic = Topic::lookup($topic_id)))
Http::response(404, 'No such help topic');
......
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