[Koha-bugs] [Bug 19691] Enforce OPAC SEARCH LIMIT server-side

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 24 16:21:20 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19691

--- Comment #1 from David Bourgault <david.bourgault at inlibro.com> ---
Created attachment 69335
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69335&action=edit
Bug 19691 - Move code to opac-search.pl

Removes the hidden input from masthead.inc, and adds a line to opac-search.pl
to enforce the limit.

Test plan:
Before:
0) Set OPAC_SEARCH_LIMIT and OPAC_LIMIT_OVERRIDE to valid values in
koha-httpd.conf (they should be commented)
1) Reload apache
2) Perform a search in the OPAC. You'll see the limit you specified appended to
the URL and reflected in the results.
3) Manually remove the limit from the URL and load the page; the search results
will not reflect the limit.

After:
0) With the same apache config
1) Perform a search from the OPAC. The limit will not show up in the URL, but
will be reflected in the search results. There should be no way of
circumventing the limit.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list