[xoops-cvslog 2325] CVS update: xoops2jp/html/class/database

Back to archive index

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) ) {


xoops-cvslog メーリングリストの案内
Back to archive index