Koha-clms/opac
Galen Charlton ac8c47e187 do some validation of the KohaOpacRecentSearches cookie
Add validation of the value of the KohaOpacRecentSearches.  In
particular, this patch avoids the generation of an internal server
error when the OPAC is presented with an old cookie that uses the
old Storable-based serialization.

This patch also moves parsing of the cookie value into a
new routine in C4::Auth, ParseSearchHistoryCookie, and adds
a test case.

To test (in conjunction with the previous patch):

Exercise the OPAC search history functionality, after
turning on the EnableOpacSearchHistory syspref:

- As an anonymous user, conduct a variety of searches,
  including ones that include non-ASCII characters
- Check the search history and verify that all searches
  are listed
- Apply this patch and the previous one.
- Do *not* clear the KohaOpacRecentSearches cookie
- Check the search history and verify that no searches
  are listed any more
- As an anonymous user, conduct a variety of searches,
  including ones that include non-ASCII characters
- Check the search history and verify that all searches
  are listed
- Log into the OPAC
- Verify that current and past searches are listed in
  search history.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-07-28 03:23:44 +00:00
..
errors Bugfix in errors/*.pl and opac/errors/*.pl 2010-02-14 20:04:40 -05:00
rss adding file just for creating the rss directory 2007-08-02 08:50:43 +00:00
sco Bug 5995 Follow up: variable scope in koha/sco/sco-main.pl 2011-10-25 19:44:51 -04:00
changelanguage.pl remove a bunch of unconditional debug warns 2010-07-02 10:57:08 -04:00
ilsdi.pl Bug 6752: Be stricter with utf-8 encoding of output 2012-02-19 21:37:10 -05:00
maintenance.pl Bug 2505: Add warnings to opac/maintenance.pl 2010-02-18 11:10:30 -05:00
oai.pl Bug 6752: Be stricter with utf-8 encoding of output 2012-02-19 21:37:10 -05:00
opac-ISBDdetail.pl Bug 6050 Make calls to GetItemsInfo consistent 2011-06-19 16:03:48 -04:00
opac-MARCdetail.pl 6829 Follow up 2012-02-19 21:34:12 -05:00
opac-account.pl Bug 4192: Fixes warnings generated by opac-account.pl. 2010-02-16 06:12:38 -05:00
opac-addbybiblionumber.pl Bug 6631: Anonymous users can create lists in OPAC 2012-02-19 22:27:36 -05:00
opac-alert-subscribe.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-authorities-home.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-authoritiesdetail.pl Bug 6187 : Fixing template issue with opac-authoritesdetail.tt 2011-04-14 15:30:30 +12:00
opac-basket.pl Bug 6129 - [3.4.x] this adds an ISSN to serialssolutions URLs 2011-09-13 20:29:28 -04:00
opac-browser.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-changelanguage.pl Bug 7514 Choose OPAC language with URL parameter 2012-02-19 22:27:57 -05:00
opac-detail.pl Bug 6129 - [3.4.x] this adds an ISSN to serialssolutions URLs 2011-09-13 20:29:28 -04:00
opac-downloadcart.pl bug 5579 : Fixes several exports to embed items 2011-04-19 22:35:15 +12:00
opac-downloadshelf.pl Fix for Bug 3140 - It is possible to email someone else's private list 2011-05-29 23:08:55 -04:00
opac-export.pl Bug 7345: Enable exporting records sans private fields 2012-02-19 22:27:45 -05:00
opac-ics.pl Bug 7532 - remove dependency on Date::ICal 2012-02-19 22:27:58 -05:00
opac-main.pl Bug 6875 cleaning opac-main.pl 2012-02-19 22:27:50 -05:00
opac-messaging.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-modrequest.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-mymessages.pl bug 2615: remove unneeded 'require Exporter' 2008-09-26 09:05:08 -05:00
opac-passwd.pl Bug 2505: Enable warnings in opac-passwd.pl an opac-renew.pl. 2009-08-12 21:28:24 -04:00
opac-privacy.pl Bug 3881: OPAC Privacy reimplementation 2011-01-31 22:23:50 +13:00
opac-readingrecord.pl Bug 6162 Fix passing of borrower details to reading history 2011-04-14 15:01:17 +12:00
opac-renew.pl Bug 7551 : Can only renew for the user you are logged in as now 2012-02-19 22:27:53 -05:00
opac-reserve.pl Bug 6347 - Fix for itemlevel holds in OPAC 2011-05-29 23:13:02 -04:00
opac-review.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-search-history.pl do some validation of the KohaOpacRecentSearches cookie 2013-07-28 03:23:44 +00:00
opac-search.pl do some validation of the KohaOpacRecentSearches cookie 2013-07-28 03:23:44 +00:00
opac-sendbasket.pl Bug 3651 Follow-up, Require patron login to send shelves and baskets 2012-01-21 00:06:08 -05:00
opac-sendshelf.pl Bug 3651 Follow-up, Require patron login to send shelves and baskets 2012-01-21 00:06:08 -05:00
opac-serial-issues.pl Bug 6195 : Opac user should not have serial manage tab 2011-04-19 13:29:01 +12:00
opac-shelves.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-showmarc.pl Bug 6972: Hardcoded template paths to en in showmarc 2011-10-25 19:34:19 -04:00
opac-showreviews.pl Fixing FSF address in license statements 2011-04-01 15:55:06 +13:00
opac-suggestions.pl Bug 5928 :wr77152 : AllowPurchaseSuggestionBranchChoice sys pref 2011-03-23 10:35:16 +13:00
opac-tags.pl Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words 2011-02-28 10:38:29 +13:00
opac-tags_subject.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-topissues.pl Bug 6947 : opac-topissues.pl wasn't respecting item live itemtypes 2012-01-21 01:23:34 -05:00
opac-user.pl Bug 6598 [REVISED] OPACFineNoRenewals syspreference does not stop user renewing in opac 2012-02-19 22:27:48 -05:00
opac-userdetails.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-userupdate.pl Bug 3651 Follow-up, Require patron login to send shelves and baskets 2012-01-21 00:06:08 -05:00
unapi fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00