No need to throw exceptions when generating MediaLibrary URLs

This commit is contained in:
Luke Towers 2020-09-18 16:01:02 -06:00
parent fe2ca6c15e
commit 15ca68c22d

View File

@ -536,7 +536,7 @@ class MediaLibrary
*/
public function getPathUrl($path)
{
$path = $this->validatePath($path);
$path = $this->validatePath($path, true);
$fullPath = $this->storagePath . implode("/", array_map("rawurlencode", explode("/", $path)));