From 08daafe71e13b43d6f2bbe57730a6a53c713b40a Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Thu, 15 Dec 2016 11:05:27 +0000 Subject: [PATCH] Fixed bug in ticket #6223 git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@140006 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../portlets/user/shareupdates/client/view/ShareUpdateForm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.java b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.java index f506687..ae1393b 100644 --- a/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.java +++ b/src/main/java/org/gcube/portlets/user/shareupdates/client/view/ShareUpdateForm.java @@ -799,7 +799,7 @@ public class ShareUpdateForm extends Composite { String [] parts = textToCheck.split("\\s"); // check the length of tokens for( String item : parts ) { - if (! item.startsWith("http")) { //url are accepted as they can be trunked + if (!item.startsWith("http") && !item.startsWith("ftp")) { //url are accepted as they can be trunked if (item.length() > 50) { return false; }