Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlSchwan committed Jul 14, 2021
1 parent ce7a0ac commit 10a4cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,6 @@ public static function needUpgrade() {
* @since 23.0.0
*/
public static function isValidUrl(string $url): bool {
return filter_var(idn_to_ascii($url), FILTER_VALIDATE_URL);
return filter_var(idn_to_ascii($url), FILTER_VALIDATE_URL) !== false;
}
}

0 comments on commit 10a4cec

Please sign in to comment.