Fixed bug in ticket #6223 (same code was also in share-updates)

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@140007 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-15 11:12:42 +00:00
parent 40192a472d
commit d00643fc38
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public class AddCommentTemplate extends Composite {
String [] parts = textToCheck.split("\\s"); String [] parts = textToCheck.split("\\s");
// check the length of tokens // check the length of tokens
for( String item : parts ) { 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) { if (item.length() > 50) {
return false; return false;
} }