fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update librarian
[wolnelektury.git]
/
src
/
search
/
views.py
diff --git
a/src/search/views.py
b/src/search/views.py
index
c6759ea
..
67c3fd4
100644
(file)
--- a/
src/search/views.py
+++ b/
src/search/views.py
@@
-137,6
+137,9
@@
def main(request):
return render_to_response(
'catalogue/search_too_short.html', {'prefix': query},
context_instance=RequestContext(request))
return render_to_response(
'catalogue/search_too_short.html', {'prefix': query},
context_instance=RequestContext(request))
+ elif len(query) > 256:
+ return render_to_response(
+ 'catalogue/search_too_long.html', {'prefix': query}, context_instance=RequestContext(request))
query = remove_query_syntax_chars(query)
query = remove_query_syntax_chars(query)