-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Fix error when viewing scenes related to objects with illegal characters in name #395
Conversation
const ret = { ...o }; | ||
ret.label = encodeURIComponent(o.label); | ||
return ret; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just do return { ...o, label: encodeURIComponent(o.label) }
. Properties are set in the order they are passed in, so even if o
has a label, it will be overwrittenby encodeURIComponent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* Ignore generated-graphql.tsx in 2.5 * Make movie name mandatory * Port #395 fix to v2.5 * Differentiate front/back image browse buttons * Move URL, Synopsis to separate rows * Fix unknown query params crashing UI
…ers in name (stashapp#395) * Fix gitattributes for v2.5
* Ignore generated-graphql.tsx in 2.5 * Make movie name mandatory * Port stashapp#395 fix to v2.5 * Differentiate front/back image browse buttons * Move URL, Synopsis to separate rows * Fix unknown query params crashing UI
Fixes #394
Encodes
ILabeledId
objects so that illegal characters (#;,/?:@&=+$
) don't break the query URL parsing.Tested by creating Movies, Studios, Performers and tags with illegal characters in the names, then clicking on the query link on the relevant page. Change has been ported to UI v2.5 except for Movies, since that is not yet in 2.5.
Also includes linting and format changes for 2.5.