diff options
Diffstat (limited to 'www-apps/gitlabhq/files/gitlabhq-6.8.2-fix-project-name-regex.patch')
-rw-r--r-- | www-apps/gitlabhq/files/gitlabhq-6.8.2-fix-project-name-regex.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/www-apps/gitlabhq/files/gitlabhq-6.8.2-fix-project-name-regex.patch b/www-apps/gitlabhq/files/gitlabhq-6.8.2-fix-project-name-regex.patch deleted file mode 100644 index 8f986c1..0000000 --- a/www-apps/gitlabhq/files/gitlabhq-6.8.2-fix-project-name-regex.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -ur gitlabhq-6.8.2.orig/app/models/project.rb gitlabhq-6.8.2/app/models/project.rb ---- gitlabhq-6.8.2.orig/app/models/project.rb 2014-05-12 11:15:38.000000000 +0200 -+++ gitlabhq-6.8.2/app/models/project.rb 2014-05-21 21:05:09.641976937 +0200 -@@ -90,7 +90,7 @@ - validates :description, length: { maximum: 2000 }, allow_blank: true - validates :name, presence: true, length: { within: 0..255 }, - format: { with: Gitlab::Regex.project_name_regex, -- message: "only letters, digits, spaces & '_' '-' '.' allowed. Letter or digit should be first" } -+ message: "only letters, digits, spaces & '_' '-' '.' ':' allowed. Letter or digit should be first" } - validates :path, presence: true, length: { within: 0..255 }, - exclusion: { in: Gitlab::Blacklist.path }, - format: { with: Gitlab::Regex.path_regex, -diff -ur gitlabhq-6.8.2.orig/lib/gitlab/regex.rb gitlabhq-6.8.2/lib/gitlab/regex.rb ---- gitlabhq-6.8.2.orig/lib/gitlab/regex.rb 2014-05-12 11:15:38.000000000 +0200 -+++ gitlabhq-6.8.2/lib/gitlab/regex.rb 2014-05-21 21:03:43.872609059 +0200 -@@ -1,3 +1,5 @@ -+# encoding: utf-8 -+ - module Gitlab - module Regex - extend self -@@ -7,7 +9,7 @@ - end - - def project_name_regex -- /\A[a-zA-Z0-9_][a-zA-Z0-9_\-\. ]*\z/ -+ /\A\p{Word}[\p{Word}\-:\. ]*\z/ - end - - def name_regex |