Skip to content

Commit a3f127d

Browse files
authored
Merge pull request #32 from Yomag84/patch-1
Path erro
2 parents d1aab2c + cd45d7e commit a3f127d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MediaManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ public function ls()
103103
*/
104104
protected function getFullPath($path)
105105
{
106-
$path = $this->storage->getDriver()->getAdapter()->applyPathPrefix($path);
106+
$fullPath = $this->storage->getDriver()->getAdapter()->applyPathPrefix($path);
107107
if (strstr($fullPath, '..')) {
108108
throw new \Exception('Incorrect path');
109109
}
110110

111-
return $path;
111+
return fullPath;
112112
}
113113

114114
public function download()

0 commit comments

Comments
 (0)