mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Added error message if the json content got thrown away because there was javascript in it
This commit is contained in:
parent
c30c4ce198
commit
6558a861a1
4
json.php
4
json.php
@ -90,6 +90,10 @@ if (isset($_GET['menuaction']))
|
|||||||
$json = new egw_json_request();
|
$json = new egw_json_request();
|
||||||
|
|
||||||
//Check whether the request data is set
|
//Check whether the request data is set
|
||||||
|
if (isset($GLOBALS['egw_unset_vars']['_POST[json_data]']))
|
||||||
|
{
|
||||||
|
throw new egw_exception_assertion_failed("JSON Data contains script tags. Aborting...");
|
||||||
|
}
|
||||||
$json->parseRequest($_GET['menuaction'], (array)$_POST['json_data']);
|
$json->parseRequest($_GET['menuaction'], (array)$_POST['json_data']);
|
||||||
common::egw_exit();
|
common::egw_exit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user