Skip to content

Commit

Permalink
do not use deperecated yanel.format parameter, but rather a dedicated…
Browse files Browse the repository at this point in the history
… query string parameter to display source
  • Loading branch information
michaelwechner committed Mar 29, 2012
1 parent ac88a22 commit 5c30a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -439,7 +439,7 @@ public void getXHTMLAuthenticationForm(HttpServletRequest request, HttpServletRe
presetLoginElement.setAttributeNS(YanelServlet.NAMESPACE, "username", loginUsername);
}

String yanelFormat = request.getParameter("yanel.format");
String yanelFormat = request.getParameter("yanel.login.format");
if(yanelFormat != null && yanelFormat.equals("xml")) {
response.setContentType("application/xml; charset=" + YanelServlet.DEFAULT_ENCODING);
//OutputStream out = response.getOutputStream();
Expand Down
4 changes: 2 additions & 2 deletions src/webapp/xslt/login-screen.xsl
Expand Up @@ -57,10 +57,10 @@
<p>
<xsl:choose>
<xsl:when test="/yanel:yanel-auth-screen/yanel:request/@yanel:qs">
<a href="?{/yanel:yanel-auth-screen/yanel:request/@yanel:qs}&amp;yanel.format=xml">Show XML source</a>
<a href="?{/yanel:yanel-auth-screen/yanel:request/@yanel:qs}&amp;yanel.login.format=xml">Show XML source</a>
</xsl:when>
<xsl:otherwise>
<a href="?&amp;yanel.format=xml">Show XML source</a>
<a href="?&amp;yanel.login.format=xml">Show XML source</a>
</xsl:otherwise>
</xsl:choose>
</p>
Expand Down

0 comments on commit 5c30a88

Please sign in to comment.