mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 23:27:17 +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
|
||||
namespace Adminer;
|
||||
|
||||
if (!ob_get_level()) {
|
||||
ob_start(null, 4096);
|
||||
}
|
||||
|
||||
/** Print HTML header
|
||||
* @param string used in title, breadcrumb and heading, should be HTML escaped
|
||||
* @param string
|
||||
@@ -19,6 +15,9 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
|
||||
page_messages($error);
|
||||
exit;
|
||||
}
|
||||
if (!ob_get_level()) {
|
||||
ob_start(null, 4096);
|
||||
}
|
||||
$title_all = $title . ($title2 != "" ? ": $title2" : "");
|
||||
$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
|
||||
|
Reference in New Issue
Block a user