Skip to content

Commit 10a4cec

Browse files
committed
fix
1 parent ce7a0ac commit 10a4cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/public/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,6 @@ public static function needUpgrade() {
523523
* @since 23.0.0
524524
*/
525525
public static function isValidUrl(string $url): bool {
526-
return filter_var(idn_to_ascii($url), FILTER_VALIDATE_URL);
526+
return filter_var(idn_to_ascii($url), FILTER_VALIDATE_URL) !== false;
527527
}
528528
}

0 commit comments

Comments
 (0)