Procházet zdrojové kódy

Fixed bug #159: pattern matching too strict for URL fields.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@666 a333f486-631f-4898-b8df-5754b55c2be0
dflaven před 15 roky
rodič
revize
788f508285
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      core/attributedef.class.inc.php

+ 1 - 1
core/attributedef.class.inc.php

@@ -1691,7 +1691,7 @@ class AttributeURL extends AttributeString
 
 	public function GetValidationPattern()
 	{
-		return "^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$";
+		return "^(http|https|ftp)\://[a-zA-Z0-9\-\.]+(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$";
 	}
 }