Commit 8e770628 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 15089: Make buglist.cgi shorten search URLs by cleaning them and then…

Bug 15089: Make buglist.cgi shorten search URLs by cleaning them and then redirecting with the cleaned URL. Patch By Mikhail Gusarov <dottedmag@altlinux.org> r=mkanat, a=mkanat
parent 0e194f12
......@@ -66,6 +66,17 @@ if (length($buffer) == 0) {
ThrowUserError("buglist_parameters_required");
}
#
# If query was POSTed, clean the URL from empty parameters and redirect back to
# itself. This will make advanced search URLs more tolerable.
#
if ($cgi->request_method() eq 'POST') {
$cgi->clean_search_url();
print $cgi->redirect(-url => $cgi->self_url());
exit;
}
# Determine whether this is a quicksearch query.
my $searchstring = $cgi->param('quicksearch');
if (defined($searchstring)) {
......
......@@ -64,7 +64,7 @@ var queryform = "queryform"
// -->
</script>
<form method="get" action="buglist.cgi" name="queryform">
<form method="post" action="buglist.cgi" name="queryform">
[% PROCESS search/form.html.tmpl %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment