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;