incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r880694 - /sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/request/LinkTransformerFactory.java
Date Mon, 16 Nov 2009 09:54:23 GMT
Author: cziegeler
Date: Mon Nov 16 09:54:19 2009
New Revision: 880694

URL: http://svn.apache.org/viewvc?rev=880694&view=rev
Log:
Clean up code

Modified:
    sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/request/LinkTransformerFactory.java

Modified: sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/request/LinkTransformerFactory.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/request/LinkTransformerFactory.java?rev=880694&r1=880693&r2=880694&view=diff
==============================================================================
--- sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/request/LinkTransformerFactory.java
(original)
+++ sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/request/LinkTransformerFactory.java
Mon Nov 16 09:54:19 2009
@@ -65,6 +65,7 @@
         private ContentHandler handler;
 
         private boolean enabled = true;
+
         /**
          * @see org.apache.sling.rewriter.Transformer#init(org.apache.sling.rewriter.ProcessingContext,
org.apache.sling.rewriter.ProcessingComponentConfiguration)
          */
@@ -91,7 +92,7 @@
             if ( this.buffer != null ) {
                 final PortalURL url = PortalRequestContext.getContext().getRequestedPortalURL(false);
                 if ( url != null ) {
-                    final String query = url.toString();
+                    final String query = url.toURL(false);
                     final int pos = query.indexOf('?');
                     this.portletQueryString = query.substring(pos + 1);
                 }



Mime
View raw message