Ensure restrictions with spaces in the name work in content server.

This commit is contained in:
Charles Haley 2010-08-18 06:58:08 +01:00
parent 367a7bbe57
commit 2464da207e

View file

@ -104,7 +104,7 @@ def __init__(self, db, opts, embedded=False, show_tracebacks=True):
def set_search_restriction(self, restriction):
if restriction:
self.search_restriction = 'search:'+restriction
self.search_restriction = 'search:"%s"'%restriction
else:
self.search_restriction = ''