Skip to content

Commit d5db7bc

Browse files
authored
Update 403 error message.
The user should get a more friendly warning when their desktop client version is not supported anymore by the server. See #nextcloud/desktop/issues/6273 Signed-off-by: Camila <hello@camilasan.com>
1 parent 63f327c commit d5db7bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dav/lib/Connector/Sabre/BlockLegacyClientPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function beforeHandler(RequestInterface $request) {
6969
preg_match(IRequest::USER_AGENT_CLIENT_DESKTOP, $userAgent, $versionMatches);
7070
if (isset($versionMatches[1]) &&
7171
version_compare($versionMatches[1], $minimumSupportedDesktopVersion) === -1) {
72-
throw new \Sabre\DAV\Exception\Forbidden('Unsupported client version.');
72+
throw new \Sabre\DAV\Exception\Forbidden('This client is unsupported by the server: upgrade to the minimum required version '.$minimumSupportedDesktopVersion);
7373
}
7474
}
7575
}

0 commit comments

Comments
 (0)