Follow-up to bug #10231: Fixed wrong pattern conversions from split() to preg_split()
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / class.tslib_content.php
index ea2e828..74fd89a 100644 (file)
@@ -3151,7 +3151,7 @@ class tslib_cObj {
                                        // traverse keys and quote them for reg ex.
                                reset($aKeys);
                                while(list($tK,$tV)=each($aKeys))       {
-                                       $aKeys[$tK]=quotemeta($tV);
+                                       $aKeys[$tK] = preg_quote($tV, '/');
                                }
                                $regex = '/' . implode('|', $aKeys) . '/';
                                        // Doing regex's