Revision: 923
          http://stripes.svn.sourceforge.net/stripes/?rev=923&view=rev
Author:   bengunter
Date:     2008-05-21 10:14:55 -0700 (Wed, 21 May 2008)

Log Message:
-----------
When checking if app is not root app, check context length > 1. This is 
consistent with r860 from Feb. 19, 2008.

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
    2008-05-21 15:34:46 UTC (rev 922)
+++ 
trunk/stripes/src/net/sourceforge/stripes/exception/DefaultExceptionHandler.java
    2008-05-21 17:14:55 UTC (rev 923)
@@ -308,7 +308,7 @@
         // Convert the referer path to a context-relative path
         String path = referer.getFile();
         String contextPath = request.getContextPath();
-        if (contextPath.length() > 0) {
+        if (contextPath.length() > 1) {
             // We can't handle it if the POST came from outside our app
             if (!path.startsWith(contextPath + "/"))
                 return null;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to