mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fixed sending of arbitrary JSON data egw_json_request::isJSONRequest(false)
This commit is contained in:
parent
de828994f2
commit
e96ec115a0
@ -49,6 +49,9 @@ class etemplate_widget_taglist extends etemplate_widget
|
||||
{
|
||||
$results[] = array('id' => $id, 'label' => $name);
|
||||
}
|
||||
// switch regular JSON response handling off
|
||||
egw_json_request::isJSONRequest(false);
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($results);
|
||||
common::egw_exit();
|
||||
|
@ -3021,6 +3021,8 @@ class mail_compose
|
||||
if($list_count++ > 5) break;
|
||||
}
|
||||
}
|
||||
// switch regular JSON response handling off
|
||||
egw_json_request::isJSONRequest(false);
|
||||
|
||||
//error_log(__METHOD__.__LINE__.array2string($jsArray));
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
Loading…
Reference in New Issue
Block a user