Commit 8a7de51f authored by Chris Graham's avatar Chris Graham

Fixed MANTIS-4003 (Comcode parsing via AJAX may not work for rare cases)

parent 94841d2d
......@@ -97,6 +97,10 @@ function comcode_convert_script()
return;
}
if (either_param_integer('raw_output', 0) == 1) {
header('Content-type: text/plain; charset=' . get_charset());
}
$from_html = either_param_integer('from_html', 0);
if ($from_html == -1) {
......@@ -188,7 +192,6 @@ function comcode_convert_script()
} else {
safe_ini_set('ocproducts.xss_detect', '0');
header('Content-type: text/plain; charset=' . get_charset());
echo $out;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment