1
0
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:
jakubvrana
2009-08-25 12:11:12 +00:00
parent 119a2a2373
commit 9fb3b13497
2 changed files with 1 additions and 1 deletions

View File

@@ -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