浏览代码

[Validator] removed ftp and ftps from default url protocols

Kris Wallsmith 14 年之前
父节点
当前提交
4a18624927
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/Validator/Constraints/Url.php

+ 1 - 1
src/Symfony/Component/Validator/Constraints/Url.php

@@ -14,5 +14,5 @@ namespace Symfony\Component\Validator\Constraints;
 class Url extends \Symfony\Component\Validator\Constraint
 {
     public $message = 'This value is not a valid URL';
-    public $protocols = array('http', 'https', 'ftp', 'ftps');
+    public $protocols = array('http', 'https');
 }