[TYPO3-core] RFC: Quoting variable for regexp, typo3/mod/tools/em/index.php

Ingmar Schlecht ingmar at typo3.org
Tue Sep 13 10:29:46 CEST 2005


This is a CVS patch request.

Type: Bugfix

Description:
In the EM code for checking the XCLASS inclusion code TYPO3 puts the 
filename ($cmpF) into a regular expression without quoting it first.

That can cause error messages of the type "Unknown modifier 'r' in..."

Thus changing: $cmpF to preg_quote($cmpF,'/')
The second argument '/' is the delimiter used in the regexp, which 
should be quoted as well.

Branches:
	- HEAD
	- maybe later backport to TYPO3_3-8 (would need adjustment
	  because the delimiter is '§' in the 3.8 version)

Bugtracker reference:
=> http://bugs.typo3.org/view.php?id=1375

cheers,
Ingmar

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mod_tools_em_index.php.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20050913/191beac6/attachment.asc 


More information about the TYPO3-team-core mailing list