Minahito
minah****@users*****
2006年 2月 7日 (火) 19:00:29 JST
Index: xoops2jp/html/class/database/sqlutility.php diff -u xoops2jp/html/class/database/sqlutility.php:1.2.8.3 xoops2jp/html/class/database/sqlutility.php:1.2.8.4 --- xoops2jp/html/class/database/sqlutility.php:1.2.8.3 Wed Jan 25 19:55:38 2006 +++ xoops2jp/html/class/database/sqlutility.php Tue Feb 7 19:00:29 2006 @@ -33,9 +33,9 @@ // If sql file is created in Mac OS, file() can not detect the line end. // ini_set("auto_detect_line_endings" ,true); - $sql_query = file(XOOPS_MODULE_PATH.'/'.$dirname.'/'.$file); - $pattern = "/^(INSERT INTO|CREATE TABLE|UPDATE)/siU"; + + $pattern = "/^(INSERT INTO|CREATE TABLE|UPDATE)(\s)+/siU"; foreach ( $sql_query as $fline ) { $fline=trim($fline); if ( preg_match($pattern,$fline) ) {