Skip to content

Commit 25b49a2

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
chore(workflow): Simplify code in URL check
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 4a6088a commit 25b49a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/workflowengine/lib/Check/RequestURL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function isWebDAVRequest(): bool {
7272
if ($this->url === RequestURL::CLI) {
7373
return false;
7474
}
75-
return substr($this->request->getScriptName(), 0 - strlen('/remote.php')) === '/remote.php' && (
75+
return str_ends_with($this->request->getScriptName(), '/remote.php') && (
7676
$this->request->getPathInfo() === '/webdav'
7777
|| str_starts_with($this->request->getPathInfo() ?? '', '/webdav/')
7878
|| $this->request->getPathInfo() === '/dav/files'

0 commit comments

Comments
 (0)