diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e37bbf8a1..f27c3afce 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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) diff --git a/lib/WebGUI/Operation/Auth.pm b/lib/WebGUI/Operation/Auth.pm index 646078340..0c2d416b4 100644 --- a/lib/WebGUI/Operation/Auth.pm +++ b/lib/WebGUI/Operation/Auth.pm @@ -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; + } }