Skip to content

Commit b170d69

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix Uri\WhatWg\Url::withPort() when an invalid value is passed
2 parents fd7fc7b + 43c3afe commit b170d69

File tree

1 file changed

+1
-1
lines changed
  • ext/lexbor/lexbor/url

1 file changed

+1
-1
lines changed

ext/lexbor/lexbor/url/url.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ lxb_url_parse_basic_h(lxb_url_parser_t *parser, lxb_url_t *url,
19061906
{
19071907
if (begin == p) {
19081908
if (override_state != LXB_URL_STATE__UNDEF) {
1909-
lxb_url_parse_return(orig_data, buf, LXB_STATUS_OK);
1909+
lxb_url_parse_return(orig_data, buf, LXB_STATUS_ERROR);
19101910
}
19111911

19121912
state = LXB_URL_STATE_PATH_START_STATE;

0 commit comments

Comments
 (0)