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

Filter out SQL regexp chars from searches #136

Open
massar opened this issue Feb 27, 2017 · 0 comments
Open

Filter out SQL regexp chars from searches #136

massar opened this issue Feb 27, 2017 · 0 comments
Labels

Comments

@massar
Copy link
Member

massar commented Feb 27, 2017

DB.Row.Scan(SELECT COUNT(*) FROM member_trustgroup mt INNER JOIN trustgroup grp ON (mt.trustgroup = grp.ident) INNER JOIN member m ON (m.ident = mt.member) INNER JOIN member_email me ON (me.member = m.ident) WHERE grp.ident = $1 AND me.email = mt.email AND (m.ident ~* $2 OR m.descr ~* $2 OR m.affiliation ~* $2) )[[ ]] error: pq: invalid regular expression: parentheses () not balanced

Search here was:
"(nameofuser"

and apparently that searches for a regexp....

@massar massar added the bug label Feb 27, 2017
@massar massar added this to the 1.5.1 Bug Attack milestone Feb 27, 2017
@bapril bapril removed this from the 1.5.1 Bug Attack milestone Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants