summaryrefslogtreecommitdiffstats
path: root/extensions/Persona
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2015-07-21 17:19:15 +0200
committerDylan William Hardison <dylan@hardison.net>2015-07-21 17:26:14 +0200
commitde49ecc0ca26af7d391286d1a4b17af11920a1fd (patch)
treec5722989c36fe8b0b452c48d09088c6d8a6def5c /extensions/Persona
parentc53d646eec8907a4e9cb027c34bb93801f3c9fdc (diff)
downloadbugzilla-de49ecc0ca26af7d391286d1a4b17af11920a1fd.tar.gz
bugzilla-de49ecc0ca26af7d391286d1a4b17af11920a1fd.tar.xz
Bug 1175985 - Bugzilla Sensitive Information Disclosure Vulnerability
Diffstat (limited to 'extensions/Persona')
-rw-r--r--extensions/Persona/Extension.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/Persona/Extension.pm b/extensions/Persona/Extension.pm
index f288702e8..2c8e46add 100644
--- a/extensions/Persona/Extension.pm
+++ b/extensions/Persona/Extension.pm
@@ -64,6 +64,15 @@ sub config_modify_panels {
}
}
+sub attachment_should_redirect_login {
+ my ($self, $args) = @_;
+ my $cgi = Bugzilla->cgi;
+
+ if ($cgi->param("persona_assertion")) {
+ ${$args->{do_redirect}} = 1;
+ }
+}
+
sub config_add_panels {
my ($self, $args) = @_;
my $modules = $args->{panel_modules};