Skip to content

ext/uri: Fix GH-22629 WHATWG validation error incorrect with empty host and non-empty userinfo#22699

Open
kocsismate wants to merge 1 commit into
php:PHP-8.5from
kocsismate:gh-22629-fix-missing-host
Open

ext/uri: Fix GH-22629 WHATWG validation error incorrect with empty host and non-empty userinfo#22699
kocsismate wants to merge 1 commit into
php:PHP-8.5from
kocsismate:gh-22629-fix-missing-host

Conversation

@kocsismate

Copy link
Copy Markdown
Member

The returned error code (LXB_URL_ERROR_TYPE_INVALID_CREDENTIALS) apparently contradicts the specification:

"If atSignSeen is true and buffer is the empty string, host-missing validation error, return failure."

… host and non-empty userinfo

The returned error code (LXB_URL_ERROR_TYPE_INVALID_CREDENTIALS) apparently contradicts the specification:

"If atSignSeen is true and buffer is the empty string, host-missing validation error, return failure."
@kocsismate kocsismate force-pushed the gh-22629-fix-missing-host branch from 98457e0 to 8e3ec77 Compare July 11, 2026 19:33
(cd "$LEXBOR_TMP_DIR" && git checkout "$LEXBOR_REF")

# Apply patches
mapfile -t patches < <(ls "$PATCHES_DIR"/*.patch)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mapfile is not available by default on MacOS (because Macs are built with a much older bash version... so I made this line portable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant