Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-23 22:44:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-23 22:44:56 +0300
commitb6d843d3223124de50109432356c0be30975d980 (patch)
treedefc77599383a2cfd6d9577cedb6ae33b9abd26a
parent9a0a7cc08d1cb8f317838434baeb4ecc90661606 (diff)
Add latest changes from gitlab-org/gitlab@16-6-stable-ee
-rw-r--r--lib/gitlab/search/abuse_detection.rb2
-rw-r--r--spec/lib/gitlab/search/abuse_detection_spec.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/search/abuse_detection.rb b/lib/gitlab/search/abuse_detection.rb
index 1fd7c6cfe8d..7aafe444c57 100644
--- a/lib/gitlab/search/abuse_detection.rb
+++ b/lib/gitlab/search/abuse_detection.rb
@@ -8,7 +8,7 @@ module Gitlab
MAX_PIPE_SYNTAX_FILTERS = 5
ABUSIVE_TERM_SIZE = 100
- ALLOWED_CHARS_REGEX = %r{\A[[:alnum:]_\-\/\.!]+\z}
+ ALLOWED_CHARS_REGEX = %r{\A[[:alnum:]_\-\+\/\.!]+\z}
ALLOWED_SCOPES = %w[
blobs
diff --git a/spec/lib/gitlab/search/abuse_detection_spec.rb b/spec/lib/gitlab/search/abuse_detection_spec.rb
index d244234e763..f849b1f996b 100644
--- a/spec/lib/gitlab/search/abuse_detection_spec.rb
+++ b/spec/lib/gitlab/search/abuse_detection_spec.rb
@@ -30,6 +30,7 @@ RSpec.describe Gitlab::Search::AbuseDetection, feature_category: :global_search
feature/it_works
really_important!
测试
+ main+testing
]
refs.each do |ref|