Updated auth to allow sending back of non-text/html mime types.

This commit is contained in:
JT Smith 2009-06-20 16:37:18 +00:00
parent de4a3f2fb2
commit 74d50ead2f
2 changed files with 10 additions and 1 deletions

View file

@ -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)

View file

@ -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;
}
}