We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b4353 commit 7f6355eCopy full SHA for 7f6355e
lib/internal/Magento/Framework/Filesystem/Driver/File.php
@@ -843,6 +843,13 @@ public function fileUnlock($resource)
843
*/
844
public function getAbsolutePath($basePath, $path, $scheme = null)
845
{
846
+ // check if the path given is already an absolute path containing the
847
+ // basepath. so if the basepath starts at position 0 in the path, we
848
+ // must not concatinate them again because path is already absolute.
849
+ if (0 === strpos($path, $basePath)) {
850
+ return $this->getScheme($scheme) . $path;
851
+ }
852
+
853
return $this->getScheme($scheme) . $basePath . ltrim($this->fixSeparator($path), '/');
854
}
855
0 commit comments