witten
/
luminotes
Archived
1
0
Fork 0

Improved input validation on search terms, so certian punctuation doesn't cause the query to fail.

This commit is contained in:
Dan Helfman 2007-12-06 03:49:50 +00:00
parent 32fd09b3f7
commit 10cee7291a
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class Notebook( Persistent ):
"""
WHITESPACE_PATTERN = re.compile( r"\s+" )
SEARCH_OPERATORS = re.compile( r"[&|!()]" )
SEARCH_OPERATORS = re.compile( r"[&|!()'\\:]" )
def __init__( self, object_id, revision = None, name = None, trash_id = None, deleted = False, user_id = None, read_write = True, owner = True ):
"""