[FOLLOWUP][TASK] Make Backend Module URLs absolute 13/38313/2
authorBenjamin Mack <benni@typo3.org>
Fri, 27 Mar 2015 23:46:45 +0000 (00:46 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Fri, 27 Mar 2015 23:48:45 +0000 (00:48 +0100)
Makes the backend work under windows again.

Resolves: #66052
Releases: master
Change-Id: Ie1247849c384a591fabe1a5d92eab59ff13909ad
Reviewed-on: http://review.typo3.org/38313
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Utility/PathUtility.php

index db29dd4..ed307e0 100644 (file)
@@ -39,7 +39,7 @@ class PathUtility {
         * @return string something like "/mysite/typo3/sysext/backend.js"
         */
        static public function getAbsoluteWebPath($targetPath) {
         * @return string something like "/mysite/typo3/sysext/backend.js"
         */
        static public function getAbsoluteWebPath($targetPath) {
-               if ($targetPath[0] === '/') {
+               if (self::isAbsolutePath($targetPath)) {
                        if (StringUtility::beginsWith($targetPath, PATH_site)) {
                                $targetPath = GeneralUtility::getIndpEnv('TYPO3_SITE_PATH') . self::stripPathSitePrefix($targetPath);
                        }
                        if (StringUtility::beginsWith($targetPath, PATH_site)) {
                                $targetPath = GeneralUtility::getIndpEnv('TYPO3_SITE_PATH') . self::stripPathSitePrefix($targetPath);
                        }