[Koha-patches] [PATCH] [SIGNED-OFF] bug 5237: Testing renewals on patron barcodes with + signs at the end

Galen Charlton gmcharlt at gmail.com
Thu Oct 28 16:00:03 CEST 2010


From: Liz Rea <lrea at nekls.org>

According to notes in bug, patch was originally by Chris Cormack.

Signed-off-by: Liz Rea <lrea at nekls.org>
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 reserve/renewscript.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl
index 09630bd..4444e7c 100755
--- a/reserve/renewscript.pl
+++ b/reserve/renewscript.pl
@@ -26,6 +26,7 @@ use warnings;
 use CGI;
 use C4::Circulation;
 use C4::Auth;
+use URI::Escape;
 use C4::Dates qw/format_date_in_iso/;
 my $input = new CGI;
 
@@ -99,6 +100,7 @@ foreach my $barcode (@barcodes) {
 # redirection to the referrer page
 #
 if ($input->param('destination') eq "circ"){
+    $cardnumber = uri_escape($cardnumber);
     print $input->redirect(
         '/cgi-bin/koha/circ/circulation.pl?findborrower='.$cardnumber.$failedrenews.$failedreturn
     );
-- 
1.7.0



More information about the Koha-patches mailing list