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:
parent
f8d3bc7f8c
commit
3d2658f10a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue