We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce7a0ac commit 10a4cecCopy full SHA for 10a4cec
lib/public/Util.php
@@ -523,6 +523,6 @@ public static function needUpgrade() {
523
* @since 23.0.0
524
*/
525
public static function isValidUrl(string $url): bool {
526
- return filter_var(idn_to_ascii($url), FILTER_VALIDATE_URL);
+ return filter_var(idn_to_ascii($url), FILTER_VALIDATE_URL) !== false;
527
}
528
0 commit comments