summaryrefslogtreecommitdiff
path: root/httemplate/elements/handle_uri_query
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-02-20 14:18:01 -0800
committerIvan Kohler <ivan@freeside.biz>2018-02-20 14:18:01 -0800
commit3120e258a9a859bba3b64e493cf6d922d8b49e4c (patch)
tree56473418700126364c749b8698766261528f606e /httemplate/elements/handle_uri_query
parentded9ea12b53d20754bbf07473dc3ec9022adae51 (diff)
fix broadband reporting with giant query URLs (large numbers of package defs, etc.), RT#76765
Diffstat (limited to 'httemplate/elements/handle_uri_query')
-rw-r--r--httemplate/elements/handle_uri_query12
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/elements/handle_uri_query b/httemplate/elements/handle_uri_query
index 2dea96a6d..b86ef0092 100644
--- a/httemplate/elements/handle_uri_query
+++ b/httemplate/elements/handle_uri_query
@@ -1,9 +1,17 @@
+<%doc>
+
+Usage (before accessing any $cgi parameters):
+
+$m->comp('/elements/handle_uri_query');
+
+</%doc>
<%init>
-my %opt = @_;
+#my %opt = @_;
if ( $cgi->param('redirect') ) {
my $session = $cgi->param('redirect');
+ my $maxrecords = $cgi->param('maxrecords');
my $pref = $FS::CurrentUser::CurrentUser->option("redirect$session");
die "unknown redirect session $session\n" unless length($pref);
@@ -16,5 +24,7 @@ if ( $cgi->param('redirect') ) {
$cgi->param($param, $decrypted);
}
+ $cgi->param('maxrecords', $maxrecords) if $maxrecords =~ /^(\d+)$/;
+
}
</%init>