added the inherit portocol case in img src

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@93989 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-04-01 13:49:26 +00:00
parent f8d3bc7f8c
commit 3d2658f10a
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
}
public String getDevelopmentUser() {
String user = "test.user";
user = "massimiliano.assante";
//user = "massimiliano.assante";
return user;
}

View File

@ -191,7 +191,7 @@ public class TextTransfromUtils {
protected static String getImageUrlFromSrcAttribute(URL pageURL, String srcAttr) {
String imageUrl = srcAttr;
_log.trace("imageUrl="+imageUrl);
if (imageUrl.startsWith("http")) {
if (imageUrl.startsWith("http") || imageUrl.startsWith("//")) { // double slash inherits the protocol
_log.trace("Direct link case");
return imageUrl;
}