mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-09-11 12:55:37 +03:00
🐛 Fixed url decoding issue - URLs sent in emails containing a % can now be updated(#20518)
fixes https://linear.app/tryghost/issue/ENG-447/🐛-urls-sent-in-emails-containing-a-percent-can-not-be-updated URLs were decoded before making a search query to the db. This is the reason the `%2F` character gets converted to `/`. This decoding is not required.
This commit is contained in:
parent
b36c2356fc
commit
bec647412f
@ -105,9 +105,6 @@ class LinkClickTrackingService {
|
||||
* @throws {errors.BadRequestError}
|
||||
*/
|
||||
#parseLinkFilter(filter) {
|
||||
// decode filter to manage any encoded uri components
|
||||
filter = decodeURIComponent(filter);
|
||||
|
||||
try {
|
||||
const filterJson = nql(filter).parse();
|
||||
const postId = filterJson?.$and?.[0]?.post_id;
|
||||
|
Loading…
Reference in New Issue
Block a user