Repository navigation
Conversation
|
Warning Review limit reached
Next review available in: 37 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (71)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eaa002ebe2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| val name = match.groupValues[1] | ||
| val quote = match.groupValues[2] | ||
| val value = match.groupValues[3] | ||
| if (isUnsafeEpubResourceUrl(value)) "" else " $name=$quote$value$quote" |
There was a problem hiding this comment.
Decode resource URLs before allowing EPUB links
For a downloaded EPUB that contains an entity-encoded scheme such as href="javascript:...", this check preserves the attribute because the raw string does not start with javascript:. The sanitized chapter is later assigned to innerHTML in the JS-enabled reflow WebView, where the browser decodes the entity and leaves an executable/clickable unsafe URL in the document. Decode HTML character references/control whitespace before the scheme check, or only allow known-relative resource forms.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 48dc5cd. The EPUB sanitizer now decodes numeric and selected named HTML character references, strips URL-policy control whitespace before scheme checks, and has regression coverage for encoded javascript, https, and protocol-relative resource URLs.
|
|
||
| val target = preferredQuality?.trim()?.lowercase().orEmpty() | ||
| if (target.isBlank() || target == "auto" || target == "original") { | ||
| return versions.bestAvailable() |
There was a problem hiding this comment.
Pin the version when applying track overrides
When the detail UI leaves Version on Auto but the user selects an audio/subtitle track, callers can send audioTrackIndex/subtitleTrackIndex with preferredFileId == null; this new Auto path may then choose a different file than the one whose track list the UI displayed (for example, first server version is 1080p but Auto picks 4K). The stale track index can select the wrong stream or fail server validation. Pin the displayed file id whenever a track override is present, or resolve the displayed Auto version with the same selector.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 48dc5cd. Mobile and TV detail play actions now keep Auto unpinned for normal playback, but pin the displayed file id whenever an explicit audio/subtitle override is present so track indexes match the version whose track list was shown. Added source coverage for both surfaces.
Summary
Verification