mirror of
https://github.com/nextcloud/server.git
synced 2026-07-14 04:11:11 -04:00
chore(workflow): Simplify code in URL check
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
9128c72b23
commit
2db5bd4e4a
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class RequestURL extends AbstractStringCheck {
|
|||
if ($this->url === RequestURL::CLI) {
|
||||
return false;
|
||||
}
|
||||
return substr($this->request->getScriptName(), 0 - strlen('/remote.php')) === '/remote.php' && (
|
||||
return str_ends_with($this->request->getScriptName(), '/remote.php') && (
|
||||
$this->request->getPathInfo() === '/webdav'
|
||||
|| str_starts_with($this->request->getPathInfo() ?? '', '/webdav/')
|
||||
|| $this->request->getPathInfo() === '/dav/files'
|
||||
|
|
|
|||
Loading…
Reference in a new issue