[BUGFIX] Link to file not editable anymore 85/38385/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 31 Mar 2015 18:03:30 +0000 (20:03 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Tue, 31 Mar 2015 21:36:53 +0000 (23:36 +0200)
Regression fix for #65358

Resolves: #66085
Releases: master,6.2
Change-Id: Ibc08d092b7d6525c264a16abc4a20e8d07ef1819
Reviewed-on: http://review.typo3.org/38385
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index 2d07e98..80c2352 100644 (file)
@@ -2327,7 +2327,7 @@ class ElementBrowser {
                        if (count($specialParts) == 2) {
                                $info['value'] = '#_SPECIAL' . $specialParts[1];
                                $info['act'] = 'spec';
-                       } elseif (GeneralUtility::isFirstPartOfStr($href, 'file:') && !GeneralUtility::isFirstPartOfStr($href, 'file://')) {
+                       } elseif (!GeneralUtility::isFirstPartOfStr($href, 'file://') && strpos($href, 'file:') !== FALSE) {
                                $rel = substr($href, strpos($href, 'file:') + 5);
                                $rel = rawurldecode($rel);
                                // resolve FAL-api "file:UID-of-sys_file-record" and "file:combined-identifier"