2010/6/30 Oskar <[email protected]>:
> Hey!
>
> I'm putting together an SQL statement and I want to escape user input
> strings, but I don't want ' ' surrounding them, because they are part
> of a regexp. Is there a way to get rid of the ' ' or is there another
> way to escape user input?

You can use web.sqlliteral. But it is dangerous to use user input
directly in the queries.

Have you seen http://xkcd.com/327/?

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to