mirror of
https://github.com/vrana/adminer.git
synced 2026-03-06 20:41:30 +01:00
Protection against big POST data
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@373 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -204,7 +204,7 @@ function remove_from_uri($param = "") {
|
||||
function get_file($key) {
|
||||
if (isset($_POST["files"][$key])) {
|
||||
$length = strlen($_POST["files"][$key]);
|
||||
return ($length & $length < 4 ? intval($_POST["files"][$key]) : base64_decode($_POST["files"][$key]));
|
||||
return ($length && $length < 4 ? intval($_POST["files"][$key]) : base64_decode($_POST["files"][$key]));
|
||||
}
|
||||
return (!$_FILES[$key] || $_FILES[$key]["error"] ? $_FILES[$key]["error"] : file_get_contents($_FILES[$key]["tmp_name"]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user