mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 09:34:08 +02:00
fix using paths as scopes
This commit is contained in:
parent
5a91adc1a5
commit
afad148a4f
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ class SearchPlugin extends ServerPlugin {
|
|||
}
|
||||
|
||||
private function getPathFromUri($uri) {
|
||||
if (strpos($uri, '://') === false) {
|
||||
return $uri;
|
||||
}
|
||||
try {
|
||||
return ($uri === '' && $this->server->getBaseUri() === '/') ? '' : $this->server->calculateUri($uri);
|
||||
} catch (Forbidden $e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue