Koha-clms/opac
Galen Charlton 45aa375aae 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:28:11 +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 Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
changelanguage.pl remove a bunch of unconditional debug warns 2010-07-02 10:57:08 -04:00
ilsdi.pl [MT3696] Fixed ILSDI GetAvailability call 2010-10-13 10:39:38 -04:00
maintenance.pl Bug 2505: Add warnings to opac/maintenance.pl 2010-02-18 11:10:30 -05:00
oai.pl bug 4903: enable OAI-DC output when install done in standard mode 2011-04-16 13:47:29 -04:00
opac-ISBDdetail.pl Bug 5864: link biblio => serials subscription is wrong 2011-03-22 17:32:15 -04:00
opac-MARCdetail.pl Fix for Bug 4997, More searches menu not on OPAC MARC and ISBD detail pages 2010-12-23 23:17:03 -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 6096 Correctly return arrayref from GetAllShelves 2011-04-16 14:38:56 -04:00
opac-alert-subscribe.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-authorities-home.pl Reimplemented fix for bug 5556, OPAC does not display the type of authority 2011-01-03 12:26:53 -05:00
opac-authoritiesdetail.pl Bug 5385: POD Cleanups (part 2) 2010-11-11 19:48:14 -05:00
opac-basket.pl Bug 5990: Lists and Cart show LOC code not Location Authorized value 2011-04-16 11:17:30 -04:00
opac-browser.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-changelanguage.pl Bug 2617: Add strict (and warnings), partial fix. 2009-03-11 08:36:55 -05:00
opac-detail.pl Bug 5965 : Normalizing opac-detail.pl 2011-04-11 15:15:27 -04:00
opac-downloadcart.pl Merge remote branch 'kc/master' into new/bug_5105 2010-11-10 18:04:39 -05:00
opac-downloadshelf.pl Merge remote branch 'kc/master' into new/bug_5105 2010-11-10 18:04:39 -05:00
opac-export.pl Bug 6040 : Adding some error handling to the opac export 2011-04-11 15:49:07 -04:00
opac-ics.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-main.pl Correcting array element reference syntax which caused unnecessary warns 2010-01-08 18:40:05 +01: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-readingrecord.pl Fix for Bug 4359, noItemTypeImages not active in OPAC 2010-11-13 08:58:11 -05:00
opac-renew.pl Bug 2505: Enable warnings in opac-passwd.pl an opac-renew.pl. 2009-08-12 21:28:24 -04:00
opac-reserve.pl Fix for Bug 4950 - checkbox should be removed when can't place a hold 2011-01-06 13:54:01 -05:00
opac-review.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-search-history.pl do some validation of the KohaOpacRecentSearches cookie 2013-07-28 03:28:11 +00:00
opac-search.pl do some validation of the KohaOpacRecentSearches cookie 2013-07-28 03:28:11 +00:00
opac-sendbasket.pl bug 3651 followup: updated for new GetMember() parameter style 2010-02-18 12:59:46 -05:00
opac-sendshelf.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-serial-issues.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-shelves.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-showmarc.pl fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
opac-showreviews.pl bug 2505: turn on warnings in two scripts 2008-12-11 08:27:52 -06:00
opac-suggestions.pl removed needless imports of the YAML module 2010-05-25 23:30:48 -04:00
opac-tags.pl Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words 2011-02-28 09:55:25 -05:00
opac-tags_subject.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-topissues.pl Fix for Bug 3459, topissues doesn't take care of ccode 2011-01-14 08:58:29 -05:00
opac-user.pl Bug 2505 - Add commented use warnings where missing in the opac/ directory 2010-04-21 20:24:59 +12:00
opac-userdetails.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-userupdate.pl Fix for Bug 5443, Inaccurate highlighting of fields in patron update email 2010-12-13 22:34:49 -05:00
unapi fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00