Improved input validation on search terms, so certian punctuation doesn't cause the query to fail.
This commit is contained in:
parent
32fd09b3f7
commit
10cee7291a
|
@ -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 ):
|
||||
"""
|
||||
|
|
Reference in New Issue