portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r374133 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerToolImpl.java
Date Wed, 01 Feb 2006 18:13:04 GMT
Author: taylor
Date: Wed Feb  1 10:13:02 2006
New Revision: 374133

URL: http://svn.apache.org/viewcvs?rev=374133&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-455
 mailto links inside of *.link files are treated as relative URLs

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerToolImpl.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerToolImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerToolImpl.java?rev=374133&r1=374132&r2=374133&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerToolImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerToolImpl.java
Wed Feb  1 10:13:02 2006
@@ -934,7 +934,7 @@
     public String getAbsoluteUrl(String relativePath)
     {
         // only rewrite a non-absolute url
-        if (relativePath != null && relativePath.indexOf("://") == -1)
+        if (relativePath != null && relativePath.indexOf("://") == -1 &&
relativePath.indexOf("mailto:") == -1)            
         {
             HttpServletRequest request = getRequestContext().getRequest();
             StringBuffer path = new StringBuffer();



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


Mime
View raw message