Skip to content

Commit

Permalink
[Feat] URL validator supports WebSocket Secure protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
landrok committed Apr 3, 2024
1 parent 7f35c53 commit 610252e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActivityPhp/Type/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function validateUrl($value): bool
&& filter_var($value, FILTER_VALIDATE_URL) !== false
&& in_array(
parse_url($value, PHP_URL_SCHEME),
['http', 'https', 'magnet']
['http', 'https', 'magnet', 'wss']
);
}

Expand Down

0 comments on commit 610252e

Please sign in to comment.