Fixed #13423: Bug/Feature: Make ext_tables.sql syntax parsing more compliable (Thanks...
authorBenni Mack <benni.mack@typo3.org>
Sun, 21 Feb 2010 16:38:54 +0000 (16:38 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sun, 21 Feb 2010 16:38:54 +0000 (16:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6943 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_install.php

index 60fc295..a22c655 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-02-21  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed #13423: Bug/Feature: Make ext_tables.sql syntax parsing more compliable (Thanks to Joachim Mathes)
        * Fixed #13201: Repots module - Use same install tool check for reports as used in About module (Thanks to Moreno Feltscher)
 
 2010-02-21  Stanislas Rolland  <typo3@sjbr.ca>
index 3a5104b..933f9bc 100644 (file)
@@ -324,8 +324,8 @@ class t3lib_install {
                        }
 
                        if (!strlen($table)) {
-                               $parts = explode(' ',$value);
-                               if ($parts[0]=='CREATE' && $parts[1]=='TABLE')  {
+                               $parts = t3lib_div::trimExplode(' ', $value, TRUE);
+                               if (strtoupper($parts[0]) === 'CREATE' && strtoupper($parts[1]) === 'TABLE') {
                                        $table = str_replace( '`', '', $parts[2]);
                                        if (TYPO3_OS=='WIN') {  // tablenames are always lowercase on windows!
                                                $table = strtolower($table);