Updated auth to allow sending back of non-text/html mime types.
This commit is contained in:
parent
de4a3f2fb2
commit
74d50ead2f
2 changed files with 10 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.7.12
|
||||
- Updated auth to allow sending back of non-text/html mime types.
|
||||
|
||||
7.7.11
|
||||
- Fixed a bug where empty version tags were not deleted. (Martin Kamerbeek / Oqapi)
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ sub getInstance {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_auth ( )
|
||||
|
|
@ -70,7 +72,13 @@ sub www_auth {
|
|||
my $i18n = WebGUI::International->new($session);
|
||||
return $i18n->get(1077);
|
||||
}
|
||||
return $session->style->userStyle($authMethod->$methodCall);
|
||||
my $out = $authMethod->$methodCall;
|
||||
if (substr($session->http->getMimeType(),0,9) eq "text/html") {
|
||||
return $session->style->userStyle($out);
|
||||
}
|
||||
else {
|
||||
return $out;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue