diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-23 22:44:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-23 22:44:56 +0300 |
commit | b6d843d3223124de50109432356c0be30975d980 (patch) | |
tree | defc77599383a2cfd6d9577cedb6ae33b9abd26a | |
parent | 9a0a7cc08d1cb8f317838434baeb4ecc90661606 (diff) |
Add latest changes from gitlab-org/gitlab@16-6-stable-ee
-rw-r--r-- | lib/gitlab/search/abuse_detection.rb | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/search/abuse_detection_spec.rb | 1 |
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| |