# HG changeset patch # User Dan # Date 1221058153 14400 # Node ID a5917b034435672a132005d68a9fc96a1b5b50b8 # Parent 077887be639deedecb220011299b8393d2262d49 Fixing \r\n bug in SQL parser (see comment on rev. 7a7173c0f62f in stable) diff -r 077887be639d -r a5917b034435 includes/sql_parse.php --- 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); } /**