mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
need to call egw_json_request::isJSONRequest(true), before throwing an exception (or calling egw_json_request::parseRequest()), otherwise exception is not shown on client as alert
This commit is contained in:
parent
3f0d279704
commit
7a0662b529
1
json.php
1
json.php
@ -100,6 +100,7 @@ if (isset($_GET['menuaction']))
|
||||
//Check whether the request data is set
|
||||
if (isset($GLOBALS['egw_unset_vars']['_POST[json_data]']))
|
||||
{
|
||||
$json->isJSONRequest(true); // otherwise exception is not send back to client, as we have not yet called parseRequest()
|
||||
throw new egw_exception_assertion_failed("JSON Data contains script tags. Aborting...");
|
||||
}
|
||||
$json->parseRequest($_GET['menuaction'], $_REQUEST['json_data']);
|
||||
|
Loading…
Reference in New Issue
Block a user