Diff of /adminer/include/connect.inc.php [e680d2] .. [81e134]  Maximize  Restore

Switch to side-by-side view

--- a/adminer/include/connect.inc.php
+++ b/adminer/include/connect.inc.php
@@ -3,6 +3,7 @@
 	global $adminer, $connection, $token, $error, $drivers;
 	$databases = array();
 	if (DB != "") {
+		header("HTTP/1.1 404 Not Found");
 		page_header(lang('Database') . ": " . h(DB), lang('Invalid database.'), true);
 	} else {
 		if ($_POST["db"] && !$error) {
@@ -75,6 +76,7 @@
 		redirect(preg_replace('~ns=[^&]*&~', '', ME) . "ns=" . get_schema());
 	}
 	if (!set_schema($_GET["ns"])) {
+		header("HTTP/1.1 404 Not Found");
 		page_header(lang('Schema') . ": " . h($_GET["ns"]), lang('Invalid schema.'), true);
 		page_footer("ns");
 		exit;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks