From 5562f8b447547b20e988d07f97e9633c5f12c03e Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Mon, 4 May 2009 10:46:14 +0000 Subject: [PATCH] Bug #900 behoben: Nach erneuern konnte man nicht mehr auf als bezahlt markieren klicken --- bin/mozilla/common.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index d1b5ce32c..7b64f7344 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -515,7 +515,15 @@ sub mark_as_paid_common { } else { my $referer = $ENV{HTTP_REFERER}; - $referer =~ s/^(.*)action\=.*\&(.*)$/$1action\=mark_as_paid\&mark_as_paid\=1\&id\=$form->{id}\&$2/; + if ($referer =~ /.*action.*/) { + $referer =~ /^(.*)\?action\=.*(\&.*)$/; + $script = $1; + $callback = $2; + } else { + $script = $referer; + $callback = ""; + } + $referer = $script . "?action=mark_as_paid&mark_as_paid=1&id=$form->{id}" . $callback; $form->header(); print qq||; print qq|

|.$locale->text('Mark as paid?').qq|

|; -- 2.20.1