Fixing \r\n bug in SQL parser (see comment on rev. 7a7173c0f62f in stable)
--- a/includes/sql_parse.php Sat Aug 23 16:03:32 2008 -0400
+++ b/includes/sql_parse.php Wed Sep 10 10:49:13 2008 -0400
@@ -73,9 +73,14 @@
{
throw new Exception('SQL file doesn\'t exist');
}
+
}
$this->sql_array = false;
$this->tpl_strings = array();
+
+ // convert \r\n in the schema to \n, in case some FTP client or zip utility ran unix2dos for us
+ // thanks to InvisGhost for reporting this error
+ $this->sql_string = str_replace("\r\n", "\n", $this->sql_string);
}
/**