diff options
author | 2011-02-14 22:56:52 +0100 | |
---|---|---|
committer | 2011-02-14 22:56:52 +0100 | |
commit | fc9367dbc2f3a88a8f2248dc8ac934935feef9d7 (patch) | |
tree | c76046c1436268cc39df051fa2bf77d6f4c259f0 /Bugzilla | |
parent | Remove tabs and fix some formatting in Bugzilla::DB::Pg. (diff) | |
download | bugzilla-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.pm | 4 |
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; }, |