mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Turn on output buffering only after sending headers
Otherwise output sent before Location (usually errors) is lost.
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Adminer;
|
namespace Adminer;
|
||||||
|
|
||||||
if (!ob_get_level()) {
|
|
||||||
ob_start(null, 4096);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Print HTML header
|
/** Print HTML header
|
||||||
* @param string used in title, breadcrumb and heading, should be HTML escaped
|
* @param string used in title, breadcrumb and heading, should be HTML escaped
|
||||||
* @param string
|
* @param string
|
||||||
@@ -19,6 +15,9 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
|
|||||||
page_messages($error);
|
page_messages($error);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
if (!ob_get_level()) {
|
||||||
|
ob_start(null, 4096);
|
||||||
|
}
|
||||||
$title_all = $title . ($title2 != "" ? ": $title2" : "");
|
$title_all = $title . ($title2 != "" ? ": $title2" : "");
|
||||||
$title_page = strip_tags($title_all . (SERVER != "" && SERVER != "localhost" ? h(" - " . SERVER) : "") . " - " . $adminer->name());
|
$title_page = strip_tags($title_all . (SERVER != "" && SERVER != "localhost" ? h(" - " . SERVER) : "") . " - " . $adminer->name());
|
||||||
// initial-scale=1 is the default but Chrome 134 on iOS is not able to zoom out without it
|
// initial-scale=1 is the default but Chrome 134 on iOS is not able to zoom out without it
|
||||||
|
Reference in New Issue
Block a user