mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02: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);
|
$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');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
echo json_encode($results);
|
echo json_encode($results);
|
||||||
common::egw_exit();
|
common::egw_exit();
|
||||||
|
@ -3021,6 +3021,8 @@ class mail_compose
|
|||||||
if($list_count++ > 5) break;
|
if($list_count++ > 5) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// switch regular JSON response handling off
|
||||||
|
egw_json_request::isJSONRequest(false);
|
||||||
|
|
||||||
//error_log(__METHOD__.__LINE__.array2string($jsArray));
|
//error_log(__METHOD__.__LINE__.array2string($jsArray));
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user