Changed an eregi() to a matching preg_match()
authorKarsten Dambekalns <karsten.dambekalns@typo3.org>
Wed, 28 Jun 2006 16:44:40 +0000 (16:44 +0000)
committerKarsten Dambekalns <karsten.dambekalns@typo3.org>
Wed, 28 Jun 2006 16:44:40 +0000 (16:44 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1548 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_install.php

index a22a5f1..f140d34 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,3 @@
-
 2006-06-28  Martin Kutschker  <martin.t.kutschker@blackbox.net>
 
        * Fix bug# 3397: FORM submit as image is not valid xhtml
@@ -14,6 +13,7 @@
        * t3lib_tcemain: Made SQL query in versionizeRecord() conform to DBAL (use OR instead of ||).
        * t3lib_userauthgroup, tx_sv_auth: Made FE group lookups possible when lockToDomain is NULL in DB (e.g. when using Oracle).
        * t3lib/stddb/tables.sql: Changed be_users.lang to VARCHAR instead of CHAR, as MySQL changes it anyway.
+       * t3lib_install: Changed an eregi() to a matching preg_match()
 
 2006-06-27 Karsten Dambekalns <karsten@typo3.org>
 
index 0339f56..4f09a8c 100755 (executable)
@@ -686,7 +686,7 @@ class t3lib_install {
                $outStatements=array();
                foreach($statements as $line => $linecontent)   {
                        $reg = array();
-                       if (eregi('^insert[[:space:]]*into[[:space:]]*[`]?([[:alnum:]_]*)[`]?',substr($linecontent,0,100),$reg))        {
+                       if (preg_match('/^insert[[:space:]]*into[[:space:]]*[`]?([[:alnum:]_]*)[`]?/i',substr($linecontent,0,100),$reg))        {
                                $nTable = trim($reg[1]);
                                if ($nTable && !strcmp($table,$nTable)) {
                                        $outStatements[]=$linecontent;