Skip to content
Snippets Groups Projects
Commit bcb6b0c1 authored by Perry Werneck's avatar Perry Werneck
Browse files

Changing error.php?mode=js from text/plain to text/javascript

Changing the js mimetype to text/javascript to avoid problems with some proxy configurations.
parent 67f4fe17
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
$ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration"); $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
if ($_REQUEST['mode'] == 'js') { if ($_REQUEST['mode'] == 'js') {
header("Content-Type: text/plain; charset=UTF-8"); header("Content-Type: text/javascript; charset=UTF-8");
print "var ERRORS = [];\n"; print "var ERRORS = [];\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment