r801fixed

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8016 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2011-01-05 08:42:05 +00:00
parent 4039a24c31
commit aaecfe6097

View file

@ -6,8 +6,7 @@ class JSONDisplayHandler {
$variables = $oModule->getVariables();
$variables['error'] = $oModule->getError();
$variables['message'] = $oModule->getMessage();
$json = preg_replace("(\r\n|\n)",'\n',json_encode2($variables));
$json = preg_replace("\t",'\t',$json);
$json = str_replace(array("\r\n","\n","\t"),array('\n','\n','\t'),json_encode2($variables));
return $json;
}
}