aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-02-14 22:56:52 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-02-14 22:56:52 +0100
commitfc9367dbc2f3a88a8f2248dc8ac934935feef9d7 (patch)
treec76046c1436268cc39df051fa2bf77d6f4c259f0 /Bugzilla
parentRemove tabs and fix some formatting in Bugzilla::DB::Pg. (diff)
downloadbugzilla-fc9367dbc2f3a88a8f2248dc8ac934935feef9d7.tar.gz
bugzilla-fc9367dbc2f3a88a8f2248dc8ac934935feef9d7.tar.bz2
bugzilla-fc9367dbc2f3a88a8f2248dc8ac934935feef9d7.zip
Bug 480044: Use dashes instead of colons to separate bug IDs in the BUGLIST cookie, because colons are HTML-escaped, making the cookie bigger than the 4k limit
r=mkanat a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 912646f83..f3fc1b82d 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -767,7 +767,9 @@ sub create {
my @bug_list;
my $cgi = Bugzilla->cgi;
if ($cgi->cookie("BUGLIST")) {
- @bug_list = split(/:/, $cgi->cookie("BUGLIST"));
+ # Also split on colons, which was used as a separator
+ # in old cookies.
+ @bug_list = split(/[:-]/, $cgi->cookie("BUGLIST"));
}
return \@bug_list;
},