chore(workflow): Simplify code in URL check

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2026-07-13 09:28:30 +02:00 committed by backportbot[bot]
parent 9128c72b23
commit 2db5bd4e4a

View file

@ -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'