Skip to content

Commit

Permalink
More Psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
  • Loading branch information
rotdrop committed Feb 21, 2023
1 parent 505dde9 commit b1156ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/QuirksPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function initialize(Server $server)
*/
public function beforeMethod(RequestInterface $request, ResponseInterface $response)
{
$userAgent = $request->getRawServerValue('HTTP_USER_AGENT');
$userAgent = $request->getRawServerValue('HTTP_USER_AGENT') ?? 'unknown';

// OSX agent string: macOS/13.2.1 (22D68) dataaccessd/1.0
if (preg_match('|macOS/([0-9]+)\\.([0-9]+)\\.([0-9]+)\s+\((\w+)\)\s+([^/]+)/([0-9]+)(?:\\.([0-9]+))?(?:\\.([0-9]+))?$|i', $userAgent, $matches)) {
Expand Down

0 comments on commit b1156ce

Please sign in to comment.