hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1070367 - /httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm
Date Mon, 14 Feb 2011 02:13:19 GMT
Author: sebb
Date: Mon Feb 14 02:13:18 2011
New Revision: 1070367

URL: http://svn.apache.org/viewvc?rev=1070367&view=rev
Log:
Oops - some more incorrect scheme checks

Modified:
    httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm

Modified: httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm?rev=1070367&r1=1070366&r2=1070367&view=diff
==============================================================================
--- httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm (original)
+++ httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm Mon Feb 14 02:13:18
2011
@@ -26,7 +26,7 @@
 ##
 #macro ( image $img $alt $border $width $height )
   #if( $img )
-    #if ( ! ( $img.toLowerCase().startsWith("http") || $img.toLowerCase().startsWith("https")
) )
+    #if ( ! ( $img.toLowerCase().startsWith("http:") || $img.toLowerCase().startsWith("https:")
) )
       #set ( $imgSrc = $PathTool.calculateLink( $img, $relativePath ) )
       #set ( $imgSrc = $imgSrc.replaceAll( '\\', '/' ) )
       #set ( $imgSrc = ' src="' + $imgSrc + '"' )
@@ -60,7 +60,7 @@
   #if ( $banner )
     #if( $banner.href )
       #set ( $hrf = $banner.href )
-      #if ( ! ( $hrf.toLowerCase().startsWith("http") || $hrf.toLowerCase().startsWith("https")
) )
+      #if ( ! ( $hrf.toLowerCase().startsWith("http:") || $hrf.toLowerCase().startsWith("https:")
) )
         #set ( $hrf = $PathTool.calculateLink( $hrf, $relativePath ) )
         #set ( $hrf = $hrf.replaceAll( '\\', '/' ) )
         #if ( ( $hrf == '' ) )
@@ -74,7 +74,7 @@
 ##
     #if( $banner.src )
         #set ( $src = $banner.src )
-        #if ( ! ( $src.toLowerCase().startsWith("http") || $src.toLowerCase().startsWith("https")
) )
+        #if ( ! ( $src.toLowerCase().startsWith("http:") || $src.toLowerCase().startsWith("https:")
) )
             #set ( $src = $PathTool.calculateLink( $src, $relativePath ) )
             #set ( $src = $src.replaceAll( '\\', '/' ) )
         #end
@@ -202,7 +202,7 @@
           #set ( $position = "left" )
         #end
 ##
-        #if ( ! ( $menu.img.toLowerCase().startsWith("http") || $menu.img.toLowerCase().startsWith("https")
) )
+        #if ( ! ( $menu.img.toLowerCase().startsWith("http:") || $menu.img.toLowerCase().startsWith("https:")
) )
           #set ( $src = $PathTool.calculateLink( $menu.img, $relativePath ) )
           #set ( $src = $src.replaceAll( '\\', '/' ) )
           #set ( $src = ' src="' + $src + '"' )
@@ -388,7 +388,7 @@
         #set ( $img = "images/logos/maven-feather.png" )
       #end
 ##
-      #if ( ! ( $img.toLowerCase().startsWith("http") || $img.toLowerCase().startsWith("https")
) )
+      #if ( ! ( $img.toLowerCase().startsWith("http:") || $img.toLowerCase().startsWith("https:")
) )
         #set ( $img = $PathTool.calculateLink( $img, $relativePath ) )
         #set ( $img = $src.replaceAll( '\\', '/' ) )
       #end



Mime
View raw message