diff options
-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| |