summaryrefslogtreecommitdiff
path: root/httemplate/elements/handle_uri_query
diff options
context:
space:
mode:
authorivan <ivan>2010-11-27 03:55:08 +0000
committerivan <ivan>2010-11-27 03:55:08 +0000
commitc1ca7ba090d1eed4fa5cbe4c63306472ff89e0d4 (patch)
tree46398182570d89cedde68175c65ac49bc9f6126a /httemplate/elements/handle_uri_query
parent6b424eb0ae0af2eb80c398ebe77f0d86d3e90fc0 (diff)
fix "URL limit exceeded" when errors are present on quick payment entry, RT#9917
Diffstat (limited to 'httemplate/elements/handle_uri_query')
-rw-r--r--httemplate/elements/handle_uri_query8
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/elements/handle_uri_query b/httemplate/elements/handle_uri_query
new file mode 100644
index 000000000..eb7ea1ae1
--- /dev/null
+++ b/httemplate/elements/handle_uri_query
@@ -0,0 +1,8 @@
+<%init>
+if ( $cgi->param('redirect') ) {
+ my $session = $cgi->param('redirect');
+ my $pref = $FS::CurrentUser::CurrentUser->option("redirect$session");
+ die "unknown redirect session $session\n" unless length($pref);
+ $cgi = new CGI($pref);
+}
+</%init>