From 0d7a4fbf959a1c522350786e83df580476bf5642 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Fri, 8 Jul 2005 12:29:14 +0000 Subject: Bug 293159: [SECURITY] Anyone can change flags and access bug summaries due to a bad check in Flag::validate() and Flag::modify() Patch By Frederic Buclin r=myk, a=justdave --- template/en/default/global/code-error.html.tmpl | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'template') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index fd3f8fb20..36a752949 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -135,6 +135,15 @@ [% title = "Invalid Dimensions" %] The width or height specified is not a positive integer. + [% ELSIF error == "invalid_flag_association" %] + [% title = "Invalid Flag Association" %] + Some flags do not belong to + [% IF attach_id %] + attachment [% attach_id FILTER html %]. + [% ELSE %] + [%+ terms.bug %] [%+ bug_id FILTER html %]. + [% END %] + [% ELSIF error == "invalid_isactive_flag" %] [% title = "Invalid isactive flag" %] The active flag was improperly set. There may be @@ -153,6 +162,20 @@ [% ELSIF error == "flag_nonexistent" %] There is no flag with ID #[% id FILTER html %]. + + [% ELSIF error == "flags_not_available" %] + [% title = "Flag Editing not Allowed" %] + [% IF type == "b" %] + Flags cannot be set or changed when + changing several [% terms.bugs %] at once. + [% ELSE %] + References to existing flags when creating + a new attachment are invalid. + [% END %] + + [% ELSIF error == "flag_requestee_disabled" %] + [% title = "Flag not Specifically Requestable" %] + The flag [% name FILTER html %] is not specifically requestable. [% ELSIF error == "flag_status_invalid" %] The flag status [% status FILTER html %] @@ -172,6 +195,10 @@ The flag type ID [% id FILTER html %] is not a positive integer. + [% ELSIF error == "flag_type_inactive" %] + [% title = "Inactive Flag Types" %] + Some flag types are inactive and cannot be used to create new flags. + [% ELSIF error == "flag_type_nonexistent" %] There is no flag type with the ID [% id FILTER html %]. -- cgit v1.2.3-24-g4f1b