Changed back references \1 to ${1} in regular expressions in tslib_fe where necessary
authorWolfgang Klinger <wolfgang@stufenlos.net>
Sat, 7 Jul 2007 10:05:31 +0000 (10:05 +0000)
committerWolfgang Klinger <wolfgang@stufenlos.net>
Sat, 7 Jul 2007 10:05:31 +0000 (10:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2389 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index 6dd4cdf..795d9fd 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-07  Wolfgang Klinger <wk@plan2.net>
+
+       * Changed back references \1 to ${1} in regular expressions in tslib_fe where necessary
+
 2007-07-07  Michael Stucki  <michael@typo3.org>
 
        * Added new static_tsconfig_help data based on TYPO3 4.1 CoreDocs. Kudos to Stephane Schitter and Francois Suter for rewriting a backend module that allows to update this data again! (This functionality was broken after switching to TER2.)
index 727c895..1b4e23a 100755 (executable)
                                                $base.= $url_parts['host'];
 
                                                        // Add path portion skipping possible file name
-                                               $base.= preg_replace('/(.*\/)[^\/]*/', '\1', $url_parts['path']);
+                                               $base.= preg_replace('/(.*\/)[^\/]*/', '${1}', $url_parts['path']);
 
                                                        // Put it into content (generate also <head> if necessary)
                                                $replacement = chr(10) . '<base href="' . htmlentities($base) . '" />' . chr(10);
@@ -3680,7 +3680,7 @@ if (version == "n3") {
         */
        function prefixLocalAnchorsWithScript() {
                $scriptPath = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
-               $this->content = preg_replace('/(<(a|area).*?href=")(#[^"]*")/i','$1' . htmlspecialchars($scriptPath) . '$3',$this->content);
+               $this->content = preg_replace('/(<(a|area).*?href=")(#[^"]*")/i','${1}' . htmlspecialchars($scriptPath) . '${3}',$this->content);
        }
 
        /**