Commit graph

8 commits

Author SHA1 Message Date
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
Douwe Maan
7d4b52b27d Enable Style/WordArray 2017-02-23 09:32:41 -06:00
James Lopez
99f7b6d246 spec and fix for sanitize method 2016-07-11 09:01:09 +02:00
James Lopez
ef5713546b few more changes from suggestions 2016-06-30 17:22:56 +02:00
James Lopez
545b92af06 use class method 2016-06-30 14:30:07 +02:00
James Lopez
5b893d603d few changes based on feedback 2016-06-30 13:17:37 +02:00
James Lopez
d83ce65c1a fix changelog and merge 2016-05-23 09:11:21 +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
Renamed from lib/gitlab/import_url.rb (Browse further)