Workaround for download correctly json data in IE
This commit is contained in:
parent
893f61f947
commit
3e27c84bbd
1 changed files with 4 additions and 1 deletions
|
@ -2613,7 +2613,10 @@ function drupal_to_js($var) {
|
||||||
*/
|
*/
|
||||||
function drupal_json($var = NULL) {
|
function drupal_json($var = NULL) {
|
||||||
// We are returning JSON, so tell the browser.
|
// We are returning JSON, so tell the browser.
|
||||||
drupal_set_header('Content-Type: application/json');
|
// drupal_set_header('Content-Type: application/json');
|
||||||
|
// Workaround while waiting an adecuate solution:
|
||||||
|
// https://suitedesk.cillero.es/ticket/3639#comment-3648
|
||||||
|
drupal_set_header('Content-Type: text/html; charset=utf-8');
|
||||||
|
|
||||||
if (isset($var)) {
|
if (isset($var)) {
|
||||||
echo drupal_to_js($var);
|
echo drupal_to_js($var);
|
||||||
|
|
Reference in a new issue