Skip to content

fix(playback): reject malformed proxy bases with empty URL delimiters - #548

Merged
hoangsvit merged 2 commits into
stagingfrom
fix/reject-empty-proxy-url-delimiters
Nov 23, 2026
Merged

hoangsvit merged 2 commits into
stagingfrom
fix/reject-empty-proxy-url-delimiters

Conversation

@hoangsvit

Copy link
Copy Markdown
Member

Reproduction

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.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

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.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

ePlus OnAir — PR Preview

🗃️ Preview expired. This PR is closed; the Preview link is hidden.

View build status

Preview is noindex; the full catalog is available on Staging after merge.

@hoangsvit
hoangsvit marked this pull request as ready for review November 23, 2026 15:42
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@hoangsvit
hoangsvit merged commit fad44c2 into staging Nov 23, 2026
10 checks passed
@hoangsvit
hoangsvit deleted the fix/reject-empty-proxy-url-delimiters branch November 23, 2026 15:45

This branch was successfully deployed

1 active deployment
preview — 55234897 Deployed Nov 23, 2026 by hoangsvit via Remove closed PR Preview #572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant