incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r602042 - /incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
Date Fri, 07 Dec 2007 09:17:52 GMT
Author: cziegeler
Date: Fri Dec  7 01:17:52 2007
New Revision: 602042

URL: http://svn.apache.org/viewvc?rev=602042&view=rev
Log:
Referer header is not used for redirection: simplify code.

Modified:
    incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java

Modified: incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java?rev=602042&r1=602041&r2=602042&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxPostServlet.java
Fri Dec  7 01:17:52 2007
@@ -143,9 +143,6 @@
     protected void createOrUpdateNodesFromRequest(SlingHttpServletRequest request, SlingHttpServletResponse
response, Session s)
     throws RepositoryException, IOException {
 
-        // Where to redirect to when done
-        String redirectPath = request.getHeader("Referer");
-
         // find out the actual "save prefix" to use - only parameters starting with
         // this prefix are saved as Properties, when creating nodes, see setPropertiesFromRequest()
         final String savePrefix = getSavePrefix(request);
@@ -198,6 +195,9 @@
         s.save();
         final String forcedRedirect = request.getParameter(RP_REDIRECT_TO);
         final String redirectExtension = request.getParameter(RP_DISPLAY_EXTENSION);
+
+        // Where to redirect to when done
+        String redirectPath;
         if(forcedRedirect != null) {
             redirectPath = forcedRedirect;
         } else {



Mime
View raw message