mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Shorten NUL byte
This commit is contained in:
@@ -9,7 +9,7 @@ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
|
||||
if ($_GET["file"] == "favicon.ico") {
|
||||
header("Content-Type: image/x-icon");
|
||||
echo compile_file('../adminer/static/favicon.ico');
|
||||
echo base64_decode(compile_file('../adminer/static/favicon.ico', 'base64_encode'));
|
||||
} elseif ($_GET["file"] == "default.css") {
|
||||
header("Content-Type: text/css; charset=utf-8");
|
||||
echo lzw_decompress(compile_file('../adminer/static/default.css', 'minify_css'));
|
||||
|
@@ -9,7 +9,11 @@ function add_apo_slashes($s) {
|
||||
}
|
||||
|
||||
function add_quo_slashes($s) {
|
||||
return addcslashes($s, "\n\r\$\0\"\\");
|
||||
$return = $s;
|
||||
$return = addcslashes($return, "\n\r\$\"\\");
|
||||
$return = preg_replace('~\0(?![0-7])~', '\\\\0', $return);
|
||||
$return = addcslashes($return, "\0");
|
||||
return $return;
|
||||
}
|
||||
|
||||
function remove_lang($match) {
|
||||
|
Reference in New Issue
Block a user