You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2009/09/27 19:44:27 UTC

svn commit: r819361 - /tomcat/trunk/webapps/manager/sessionsList.jsp

Author: markt
Date: Sun Sep 27 17:44:26 2009
New Revision: 819361

URL: http://svn.apache.org/viewvc?rev=819361&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47324
Fix submit IRL when behind a reverse proxy
Patch by Maik Jablonski

Modified:
    tomcat/trunk/webapps/manager/sessionsList.jsp

Modified: tomcat/trunk/webapps/manager/sessionsList.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/manager/sessionsList.jsp?rev=819361&r1=819360&r2=819361&view=diff
==============================================================================
--- tomcat/trunk/webapps/manager/sessionsList.jsp (original)
+++ tomcat/trunk/webapps/manager/sessionsList.jsp Sun Sep 27 17:44:26 2009
@@ -26,7 +26,7 @@
 
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <% String path = (String) request.getAttribute("path");
-   String submitUrl = ((HttpServletRequest)pageContext.getRequest()).getRequestURL().append("?path=").append(path).toString();
+   String submitUrl = ((HttpServletRequest)pageContext.getRequest()).getRequestURI() + "?path=" + path;
    Collection activeSessions = (Collection) request.getAttribute("activeSessions");
 %>
 <head>
@@ -36,7 +36,7 @@
 	<meta http-equiv="expires" content="0"/><!-- 0 is an invalid value and should be treated as 'now' -->
 	<meta http-equiv="content-language" content="en"/>
 	<meta name="author" content="Cedrik LIME"/>
-	<meta name="copyright" content="copyright 2005-2007 the Apache Software Foundation"/>
+	<meta name="copyright" content="copyright 2005-2009 the Apache Software Foundation"/>
 	<meta name="robots" content="noindex,nofollow,noarchive"/>
 	<title>Sessions Administration for <%= path %></title>
 </head>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org