From 0db5e112ffda7099c3209d33d12bc2a42153a4f0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 6 Oct 2011 11:42:54 -0400 Subject: [PATCH] TPac: My List add/remove page anchor fix Removed /g modifier from URL anchor regex to prevent URLs with multiple page #-anchors. This change primarily affects IE which includes #-anchors in the referer header. Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm index a80549fab2..b1ebf4a807 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Container.pm @@ -128,7 +128,7 @@ sub mylist_action_redirect { # on the results page, we want to redirect # back to record that was affected $url = $self->ctx->{referer}; - $url =~ s/#.*|$/#$anchor/g; + $url =~ s/#.*|$/#$anchor/; } return $self->generic_redirect( -- 2.43.2