From eb9aa285dae3b6c3bbe95c03dbcc6256cc9cdc92 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 12 Apr 2016 19:34:20 -0700 Subject: [PATCH] Make munge_url use repeatable sorting --- Debbugs/CGI.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Debbugs/CGI.pm b/Debbugs/CGI.pm index d51b9be..3632f3f 100644 --- a/Debbugs/CGI.pm +++ b/Debbugs/CGI.pm @@ -161,7 +161,9 @@ sub munge_url { while (my ($key,$value) = splice @old_param,0,2) { push @new_param,($key,$value) unless exists $params{$key}; } - $new_url->query_form(@new_param,%params); + $new_url->query_form(@new_param, + map {($_,$params{$_})} + sort keys %params); return $new_url->as_string; } -- 2.39.2