Skip to content

Commit

Permalink
Fix #3667 where the Content URL could be invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Dec 3, 2024
1 parent 6bd50c2 commit 7084b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,7 @@ public function getContentUrl($hash, $options = array())
}
}
if (empty($file['url']) && $this->URL) {
$path = str_replace($this->separator, '/', substr($this->decode($hash), strlen(rtrim($this->root, '/' . $this->separator)) + 1));
$path = str_replace($this->separator, '/', substr($this->decode($hash), strlen(trim($this->root, '/' . $this->separator))));
if ($this->encoding) {
$path = $this->convEncIn($path, true);
}
Expand Down

0 comments on commit 7084b55

Please sign in to comment.