Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make changes to fix special characters in Criterion labels (#1819) #2301

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Conversation

DampToast
Copy link
Contributor

@DampToast DampToast commented Feb 8, 2022

Reverse the '&' and '+' replacement done on StringCriterion
Decodes special characters in IHierarchicalLabeledIdCriterion

Issue #1819

209-212 just undo what was done during encodeValue(). The downside is that if somebody has %2B in their string it will decode that to a '+' instead of showing '%2B' if that was desired. Likewise if they have an encoded '&' that they purposefully want. But that seems rare. This only affects the display of this data.

I also noticed that a more widespread issue was happening with the IHierarchicalLabeledIdCriterion where it was URI encoded in the database but not decoded for display. So you would see strings like "Bob%20Ross" doing similar steps but with something like filtering by studio. This fixes that as well. Again it only alters the display value, nothing in the URL or data passed around for the application.

Reverse the '&' and '+' replacement done on StringCriterion
Decodes special characters in IHierarchicalLabeledIdCriterion
@kermieisinthehouse kermieisinthehouse added bug Something isn't working ui Issues related to UI labels Feb 9, 2022
Copy link
Collaborator

@kermieisinthehouse kermieisinthehouse left a comment

Choose a reason for hiding this comment

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

Code reviewed and tested, approved.

Thank you for your first contribution!

@kermieisinthehouse kermieisinthehouse merged commit 67b1d15 into stashapp:develop Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui Issues related to UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Saved filter does not URL decode values when used
2 participants