Commit Graph

6 Commits

Author SHA1 Message Date
Rémy Coutable bf4cc9e1f3
Don't allow to pass a user to ProjectWiki#http_url_to_repo
This partially reverts be25bbc4d2.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-30 14:18:58 +02:00
Rémy Coutable be25bbc4d2 Fix ProjectWiki#http_url_to_repo signature
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>
2017-03-20 16:24:01 +01:00
Toon Claes c92808ed32 Fix for creating a project through API when import_url is nil
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.
2017-03-10 10:03:03 +01:00
James Lopez 99f7b6d246 spec and fix for sanitize method 2016-07-11 09:01:09 +02:00
Grzegorz Bizon 9e211091a8 Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
Rubén Dávila 0c47b68d04 Mask credentials from URL when import of project has failed. 2016-05-18 21:16:36 -05:00