summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/url_sanitizer_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove those tests as they're not needed anymoreLin Jen-Shin2017-10-031-18/+0
| | | | Because now addressable would consider them invalid anyway.
* Just allow the scheme we want!Lin Jen-Shin2017-09-291-4/+1
|
* Adapt to the latest addressable behaviourLin Jen-Shin2017-09-291-2/+2
|
* Backport more EE changes to Gitlab::UrlSanitizerNick Thomas2017-09-111-0/+9
|
* Remove blank passwords from sanitized URLsNick Thomas2017-09-061-51/+129
|
* Backport EE fixes to Gitlab::UrlSanitizer to CENick Thomas2017-09-061-0/+1
|
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't allow to pass a user to ProjectWiki#http_url_to_repoRémy Coutable2017-05-301-7/+2
| | | | | | This partially reverts be25bbc4d2c7e3d5cf3da6f51cb7f7355295ef52. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix ProjectWiki#http_url_to_repo signatureRémy Coutable2017-03-201-6/+28
| | | | | | | New Gitlab::UrlSanitizer.http_credentials_for_user method responsible for generating a credentials hash from a user. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix for creating a project through API when import_url is niltc-fix-project-create-500Toon Claes2017-03-101-0/+8
| | | | | | | The API was returning 500 when `nil` is passed for the `import_url`. In fact, it was `Gitlab::UrlSanitizer.valid?` which was throwing a `NoMethodError` when `nil` value was passed.
* spec and fix for sanitize methodJames Lopez2016-07-111-0/+6
|
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-1/+0
|
* Mask credentials from URL when import of project has failed.Rubén Dávila2016-05-181-0/+68