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
This commit is contained in:
Costantino Perciante 2016-12-15 11:05:27 +00:00
parent 4ca241f6e6
commit 08daafe71e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}