Commit 7dd3ad6e authored by Donal McMullan's avatar Donal McMullan
Browse files

Die immediately (issue a 404) if networking is disabled

parent e88df206
......@@ -50,6 +50,13 @@ ob_start();
$errors = trim(ob_get_contents());
ob_end_clean();
// If networking is off, return a 404
$networkenabled = get_config('enablenetworking');
if (empty($networkenabled)) {
header("HTTP/1.0 404 Not Found");
exit;
}
// Content type for output is never html:
header('Content-type: text/xml; charset=utf-8');
ini_set('display_errors',0);
......
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