Skip to content

Escape social settings inputs with htmlspecialchars (CodeRabbit on #260)#264

Merged
fabiodalez-dev merged 1 commit into
mainfrom
fix/social-form-escaping-260
Jul 17, 2026
Merged

Escape social settings inputs with htmlspecialchars (CodeRabbit on #260)#264
fabiodalez-dev merged 1 commit into
mainfrom
fix/social-form-escaping-260

Conversation

@fabiodalez-dev

Copy link
Copy Markdown
Owner

CodeRabbit flagged the Telegram settings input for using HtmlHelper::e() in a view (against the project's view-escaping rule). All six social inputs (facebook/twitter/instagram/linkedin/bluesky/telegram) shared that pattern, so I converted them all to htmlspecialchars(..., ENT_QUOTES, 'UTF-8') for consistency — not just the one line CodeRabbit saw.

The other two findings on #260 are addressed by reply on the threads: the missing save-time sanitization is by design (the security boundary is output — both the footer render and the Schema.org sameAs already run every social through sanitizePublicHttpUrl(), uniformly for all six), and the re-seed concern is guarded by .installed (the seed only re-runs on a deliberate from-scratch reinstall, not on upgrade/recovery).

…tmlHelper::e

CodeRabbit flagged the Telegram input for using HtmlHelper::e() in a view, which
the project rules forbid — but all six social inputs (facebook/twitter/
instagram/linkedin/bluesky/telegram) had the same pattern. Converted them all to
htmlspecialchars(..., ENT_QUOTES, 'UTF-8') for consistency, not just the one
CodeRabbit saw.
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@fabiodalez-dev, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 17 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f4deff99-0149-4442-bf20-d9805ff517cd

📥 Commits

Reviewing files that changed from the base of the PR and between 751a0cd and e5a2741.

📒 Files selected for processing (1)
  • app/Views/settings/index.php
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/social-form-escaping-260

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

Comment @coderabbitai help to get the list of available commands.

@fabiodalez-dev
fabiodalez-dev merged commit 221f018 into main Jul 17, 2026
6 checks passed
@fabiodalez-dev
fabiodalez-dev deleted the fix/social-form-escaping-260 branch July 17, 2026 14:50
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