Skip to content

Commit

Permalink
Merge branch 'PHP-8.0'
Browse files Browse the repository at this point in the history
* PHP-8.0:
  Fix warning
  • Loading branch information
smalyshev committed Jun 28, 2021
2 parents d72e82b + 1900137 commit 4957b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/filter/logical_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ void php_filter_validate_url(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */
RETURN_VALIDATION_FAILED
}

if (url->user != NULL && !is_userinfo_valid(url->user)
|| url->pass != NULL && !is_userinfo_valid(url->pass)
if ((url->user != NULL && !is_userinfo_valid(url->user))
|| (url->pass != NULL && !is_userinfo_valid(url->pass))
) {
php_url_free(url);
RETURN_VALIDATION_FAILED
Expand Down

0 comments on commit 4957b7c

Please sign in to comment.