Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Sanitize query params #16

Open
PirminTapken opened this issue Sep 12, 2014 · 0 comments
Open

Sanitize query params #16

PirminTapken opened this issue Sep 12, 2014 · 0 comments

Comments

@PirminTapken
Copy link
Contributor

query: TracLinks and the [[TicketQuery]] macro both use a mini “query language” for specifying query filters. Basically, the filters are separated by ampersands (&). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (|), meaning that the filter matches any of the values. To include a literal & or | in a value, escape the character with a backslash ().

According to the last sentence, & and | are not allowed to occur in search strings. We should have saveguards against this and escape those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant