[BUGFIX] Link to file not editable anymore 83/38383/4
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 31 Mar 2015 18:03:30 +0000 (20:03 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 31 Mar 2015 18:36:49 +0000 (20:36 +0200)
Regression fix for #65358

Resolves: #66085
Releases: master,6.2
Change-Id: Ibc08d092b7d6525c264a16abc4a20e8d07ef1819
Reviewed-on: http://review.typo3.org/38383
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index e9cedc6..e808b8f 100644 (file)
@@ -2380,7 +2380,7 @@ class ElementBrowser {
                        if (count($specialParts) == 2) {
                                $info['value'] = '#_SPECIAL' . $specialParts[1];
                                $info['act'] = 'spec';
-                       } elseif (StringUtility::beginsWith($href, 'file:') && !StringUtility::beginsWith($href, 'file://')) {
+                       } elseif (!StringUtility::beginsWith($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"