summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/url_sanitizer_spec.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-09-29 21:45:00 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-09-29 21:45:00 +0800
commit9401c137fdb6fd217cd81528c2d288f465262723 (patch)
treecccd448afe7d41a0d3ef9a5f6081fb6dbbd256f8 /spec/lib/gitlab/url_sanitizer_spec.rb
parentf7fd36f2a264d4b4cbf9b308497b419aa7bd26c1 (diff)
downloadgitlab-ce-9401c137fdb6fd217cd81528c2d288f465262723.tar.gz
Just allow the scheme we want!
Diffstat (limited to 'spec/lib/gitlab/url_sanitizer_spec.rb')
-rw-r--r--spec/lib/gitlab/url_sanitizer_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/lib/gitlab/url_sanitizer_spec.rb b/spec/lib/gitlab/url_sanitizer_spec.rb
index 6e31b6986a4..2f5cb92fb67 100644
--- a/spec/lib/gitlab/url_sanitizer_spec.rb
+++ b/spec/lib/gitlab/url_sanitizer_spec.rb
@@ -40,7 +40,7 @@ describe Gitlab::UrlSanitizer do
false | ''
false | '123://invalid:url'
false | 'valid@project:url.git'
- true | 'valid:pass@project:url.git'
+ false | 'valid:pass@project:url.git'
true | 'ssh://example.com'
true | 'ssh://:@example.com'
true | 'ssh://foo@example.com'
@@ -117,9 +117,6 @@ describe Gitlab::UrlSanitizer do
'http://@example.com' | { user: nil, password: nil }
'http://example.com' | { user: nil, password: nil }
- # Credentials from SCP-style URLs are not supported at present
- 'foo:bar@example.com:path' | { user: nil, password: nil }
-
# Other invalid URLs
nil | { user: nil, password: nil }
'' | { user: nil, password: nil }