From f6b2ae8748271711fbd4bf9dbb568589ebb62a1d Mon Sep 17 00:00:00 2001 From: Daniel Tiefnig Date: Mon, 24 Oct 2011 15:33:37 +0000 Subject: [PATCH] use urlencoded parameter for billing fee edit - fixes issue #763 --- lib/admin/Controller/billing.pm | 4 ++++ root/tt/billing_fees.tt | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/admin/Controller/billing.pm b/lib/admin/Controller/billing.pm index d9cef8c..87da4d0 100644 --- a/lib/admin/Controller/billing.pm +++ b/lib/admin/Controller/billing.pm @@ -3,6 +3,7 @@ package admin::Controller::billing; use strict; use warnings; use base 'Catalyst::Controller'; +use URI::Escape; my @WEEKDAYS = qw(Monday Tuesday Wednesday Thursday Friday Saturday Sunday); @@ -452,6 +453,9 @@ sub search_fees : Local { $c->stash->{searched} = 1; if(ref $$fee_list{fees} eq 'ARRAY' and @{$$fee_list{fees}}) { + for(@{$$fee_list{fees}}) { + $$_{urlenc_destination} = uri_escape($$_{destination}); + } $c->stash->{fee_list} = $$fee_list{fees}; $c->stash->{total_count} = $$fee_list{total_count}; $c->stash->{offset} = $offset; diff --git a/root/tt/billing_fees.tt b/root/tt/billing_fees.tt index e077f43..0f9e57d 100644 --- a/root/tt/billing_fees.tt +++ b/root/tt/billing_fees.tt @@ -109,10 +109,10 @@ [% fee.zone_detail %] [% UNLESS Catalyst.session.admin.read_only %] - Edit + Edit - Delete + Delete [% ELSE %]