+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.
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!';