Skip to content

fix: correct game forum resource URL encoding (#3339) - #5199

Open
adamjohnny5 wants to merge 2 commits into
RetroAchievements:masterfrom
adamjohnny5:fix/3339-game-resource-url-encoding
Open

fix: correct game forum resource URL encoding (#3339)#5199
adamjohnny5 wants to merge 2 commits into
RetroAchievements:masterfrom
adamjohnny5:fix/3339-game-resource-url-encoding

Conversation

@adamjohnny5

Copy link
Copy Markdown

Fixes URL issues in official game forum topics involving titles with apostrophes or other reserved characters. The changes replace manual escaping with proper query encoding, add regression coverage for special characters, and ensure external search URLs preserve the full game title.

Testing included targeted backend coverage for the affected flow, composer fix, composer analyse, and manual review of the generated resource URLs.

@greptile-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Corrects resource search URL encoding using http_build_query.

Confidence Score: 5/5

Safe to merge; restoring regression coverage is recommended.

Encoding is correct, but its focused regression test was removed.

Files Needing Attention: app/Helpers/database/forum.php

Reviews (2): Last reviewed commit: "fix: correct game forum resource URL enc..." | Re-trigger Greptile

Comment thread app/Helpers/database/forum.php Outdated
Comment thread app/Helpers/database/forum.php Outdated
Comment thread tests/Feature/Community/Controllers/AchievementSetClaimControllerTest.php Outdated
Comment thread app/Helpers/database/forum.php

@wescopeland wescopeland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

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.

Auto generated resources URL in game forum dropping part of the search if there's an apostrophe

3 participants