Skip to content

fix(ui): santise topic tags in URLs#493

Open
ashquarky wants to merge 1 commit intodevfrom
work/fixfixfix
Open

fix(ui): santise topic tags in URLs#493
ashquarky wants to merge 1 commit intodevfrom
work/fixfixfix

Conversation

@ashquarky
Copy link
Copy Markdown
Member

Fixes #282

@ashquarky ashquarky requested a review from mrjvs April 27, 2026 06:30
}
const posts = await POST.find({ topic_tag: query.topic_tag }).sort({ created_at: -1 }).skip(query.offset).limit(query.limit);

const nextLink = `/topics/more?topic_tag=${query.topic_tag}&offset=${query.offset + posts.length}&pjax=true`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this also needs it

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.

[Bug]: Topic tags are not sanitised inside a URL

2 participants