mirror of
https://github.com/vrana/adminer.git
synced 2025-08-22 22:23:19 +02:00
Always set time limit (fixes #2844071)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1006 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -10,7 +10,6 @@ page_header(lang('SQL command'), $error);
|
||||
if (!$error && $_POST) {
|
||||
$query = (isset($_POST["file"]) ? get_file("sql_file") : $_POST["query"]);
|
||||
if (is_string($query)) { // get_file() returns error as number
|
||||
@set_time_limit(0); // set_time_limit() can be disabled
|
||||
$query = str_replace("\r", "", $query); // parser looks for \n
|
||||
$query = rtrim($query);
|
||||
if (strlen($query) && (!$history || end($history) != $query)) { // don't add repeated
|
||||
|
Reference in New Issue
Block a user