1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Compress HTML by default

This commit is contained in:
Jakub Vrana
2025-04-07 12:33:51 +02:00
parent e6810258bd
commit 93f8a0e7ed

View File

@@ -13,7 +13,7 @@ function page_header(string $title, string $error = "", $breadcrumb = array(), s
exit;
}
if (!ob_get_level()) {
ob_start(null, 4096);
ob_start('ob_gzhandler', 4096);
}
$title_all = $title . ($title2 != "" ? ": $title2" : "");
$title_page = strip_tags($title_all . (SERVER != "" && SERVER != "localhost" ? h(" - " . SERVER) : "") . " - " . adminer()->name());