You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A configured proxy base such as https://proxy.example/? passes the current url.search/url.hash check because WHATWG URL exposes both as empty strings. Appending / creates https://proxy.example/?/https://radio.example/live.mp3, so the stream URL becomes a query instead of the expected proxy path. The same applies to a trailing # fragment (which is never sent to the server).
Fix
Reject any proxy base containing a query or fragment delimiter, even when its value is empty. Direct stream candidates remain available; no change to valid proxy configurations.
Regression
Added a Node test covering trailing ? and # on both root and nested proxy paths. Confirmed the malformed URL behavior with Node's WHATWG URL parser (url.search === '' for https://proxy.example/?). Full repository npm test, browser QA and CI remain to be verified; do not merge until CI passes.
Acceptance
Invalid proxy configuration never creates a broken fallback candidate.
Valid HTTP(S) proxy base without query/fragment remains supported.
Direct playback remains unchanged.
Risk
Low: intentionally rejects malformed proxy bases previously accepted. No secrets, production branch or deployment changes.
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reproduction
A configured proxy base such as
https://proxy.example/?passes the currenturl.search/url.hashcheck because WHATWG URL exposes both as empty strings. Appending/createshttps://proxy.example/?/https://radio.example/live.mp3, so the stream URL becomes a query instead of the expected proxy path. The same applies to a trailing#fragment (which is never sent to the server).Fix
Reject any proxy base containing a query or fragment delimiter, even when its value is empty. Direct stream candidates remain available; no change to valid proxy configurations.
Regression
Added a Node test covering trailing
?and#on both root and nested proxy paths. Confirmed the malformed URL behavior with Node's WHATWG URL parser (url.search === ''forhttps://proxy.example/?). Full repositorynpm test, browser QA and CI remain to be verified; do not merge until CI passes.Acceptance
Risk
Low: intentionally rejects malformed proxy bases previously accepted. No secrets, production branch or deployment changes.