Skip to content
Snippets Groups Projects
Commit 0a55bfbc authored by JediKev's avatar JediKev
Browse files

Merge branch 'issue/ajax-reflected-xss' into release/v1.10.2

* issue/ajax-reflected-xss:
  issue: AJAX Reflected XSS
parents f8280077 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