bug 5237: Testing renewals on patron barcodes with + signs at the end
authorLiz Rea <lrea@nekls.org>
Thu, 28 Oct 2010 14:00:03 +0000 (10:00 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 1 Nov 2010 22:20:01 +0000 (11:20 +1300)
According to notes in bug, patch was originally by Chris Cormack.

Signed-off-by: Liz Rea <lrea@nekls.org>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reserve/renewscript.pl

index 09630bd..4444e7c 100755 (executable)
@@ -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
     );