Remove \r from query
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@555 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
d044ae0534
commit
20432854a8
|
@ -8,6 +8,7 @@ page_header(lang('SQL command'), $error);
|
||||||
if (!$error && $_POST) {
|
if (!$error && $_POST) {
|
||||||
if (is_string($query = (isset($_POST["query"]) ? $_POST["query"] : get_file("sql_file")))) {
|
if (is_string($query = (isset($_POST["query"]) ? $_POST["query"] : get_file("sql_file")))) {
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
|
$query = str_replace("\r", "", $query);
|
||||||
$delimiter = ";";
|
$delimiter = ";";
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
$empty = true;
|
$empty = true;
|
||||||
|
|
Loading…
Reference in a new issue