Fixed bug #1375: Made typo3/mod/tools/em/index.php use preg_quote() on filename befor...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 13 Sep 2005 09:52:31 +0000 (09:52 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 13 Sep 2005 09:52:31 +0000 (09:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@791 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/index.php

index cd21aaa..6e3afee 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-09-13 Ingmar Schlecht <ingmar@typo3.org>
+
+       * Fixed bug #1375: Made typo3/mod/tools/em/index.php use preg_quote() on filename before passing it to preg_match()
+
 2005-09-13 Karsten Dambekalns <karsten@typo3.org>
 
        * Fixed the page is being generated page refreshing to the wrong page when query parameters are used.
index 41e9fff..ab2c6b4 100755 (executable)
@@ -2705,7 +2705,7 @@ EXTENSION KEYS:
                                                                if ($reg[1]) {
                                                                        $cmpF = 'ext/'.$extKey.'/'.$fileName;
                                                                        if (!strcmp($reg[1],$cmpF))     {
-                                                                               if (preg_match('/_once[[:space:]]*\(\$TYPO3_CONF_VARS\[TYPO3_MODE\]\[[\'"]XCLASS[\'"]\]\[[\'"]'.$cmpF.'[\'"]\]\);/', $XclassParts[1]))  {
+                                                                               if (preg_match('/_once[[:space:]]*\(\$TYPO3_.ONF_VARS\[TYPO3_MODE\]\[[\'"]XCLASS[\'"]\]\[[\'"]'.preg_quote($cmpF,'/').'[\'"]\]\);/', $XclassParts[1]))  {
                                                                                         $out['msg'][] = 'XCLASS OK in '.$fileName;
                                                                                } else $out['errors'][] = 'Couldn\'t find the include_once statement for XCLASS!';
                                                                        } else $out['errors'][] = 'The XCLASS filename-key "'.$reg[1].'" was different from "'.$cmpF.'" which it should have been!';