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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]