Resolve Display Issue With Alt Titles That Have Apostrophes #45
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
javascript
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Games that have apostrophes in their alternative titles display in lists with a backslash. This is likely just a matter of escaping the alternative title properly either when inserting it into the database or displaying on the page, or both.
https://internal.myvideogamelist.com/T97
The above link can also be seen for more information.
Implemented and pushed in commit
0335964(Fix escaped alternate title display).Notes:
alt_titlesdata containing backslash-escaped quotes, e.g.Samurai\'s Legend.Game::alt_titlesaccessor/mutator that normalizes legacy backslash-escaped single/double quotes on read and write, so list cards, game profiles, admin displays, and future saves all get the cleaned value from the model.Samurai's Legendwithout the backslash.Verification:
vendor/bin/pint --dirty --format agentphp artisan test --compact tests/Feature/NewlyAddedGamesPageTest.php(7 passed, 57 assertions)