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());
// If networking is off, return a 404
$networkenabled = get_config('enablenetworking');
if (empty($networkenabled)) {
header("HTTP/1.0 404 Not Found");
// Content type for output is never html:
header('Content-type: text/xml; charset=utf-8');
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