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:
parent
40192a472d
commit
d00643fc38
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue