зеркало из https://github.com/mozilla/pjs.git
[SECURITY] Bug 209742: Under some circumstances, a user can obtain component descriptions for a product to which he does not normally have access.
Patch by Ryan Cleary <tryanc@interdimensions.com> r= joel, bbaetz a= justdave
This commit is contained in:
Родитель
fe70c2e6d7
Коммит
d2043e034b
|
@ -46,7 +46,7 @@ if (!defined $::FORM{'product'}) {
|
||||||
# Reference to a subset of %::proddesc, which the user is allowed to see
|
# Reference to a subset of %::proddesc, which the user is allowed to see
|
||||||
my %products;
|
my %products;
|
||||||
|
|
||||||
if (AnyDefaultGroups()) {
|
if (AnyEntryGroups()) {
|
||||||
# OK, now only add products the user can see
|
# OK, now only add products the user can see
|
||||||
confirm_login() unless $::userid;
|
confirm_login() unless $::userid;
|
||||||
foreach my $p (@::legal_product) {
|
foreach my $p (@::legal_product) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче