From 20432854a86654d2b1ebf5f792a6ff0810684f94 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 16 Feb 2009 11:27:43 +0000 Subject: [PATCH] Remove \r from query git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@555 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- sql.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sql.inc.php b/sql.inc.php index a5d949c7..a01ae9fa 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -8,6 +8,7 @@ page_header(lang('SQL command'), $error); if (!$error && $_POST) { if (is_string($query = (isset($_POST["query"]) ? $_POST["query"] : get_file("sql_file")))) { @set_time_limit(0); + $query = str_replace("\r", "", $query); $delimiter = ";"; $offset = 0; $empty = true;