summaryrefslogtreecommitdiff
path: root/spec/validators
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42GitLab Bot2022-04-201-2/+2
|
* Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42GitLab Bot2022-03-185-0/+98
|
* Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42GitLab Bot2022-02-181-1/+9
|
* Add latest changes from gitlab-org/security/gitlab@14-5-stable-eeGitLab Bot2021-12-031-0/+12
|
* Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42GitLab Bot2021-11-181-0/+12
|
* Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42GitLab Bot2021-09-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42GitLab Bot2021-08-191-0/+44
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-195-14/+16
|
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-202-31/+3
|
* Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40GitLab Bot2021-03-161-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42GitLab Bot2021-02-181-3/+47
|
* Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot2020-12-171-0/+30
|
* Add latest changes from gitlab-org/security/gitlab@13-6-stable-eeGitLab Bot2020-12-041-0/+36
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-0/+40
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-0/+37
|
* Add latest changes from gitlab-org/security/gitlab@13-4-stable-eeGitLab Bot2020-09-301-0/+36
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-0/+1
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-2018-17/+86
|
* Add latest changes from gitlab-org/security/gitlab@13-1-stable-eeGitLab Bot2020-06-291-0/+24
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-0/+50
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-202-0/+71
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-041-0/+16
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-241-7/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-191-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-172-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-147-9/+23
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-081-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-021-1/+1
|
* Allow to load ECDSA certificates for pages domainsVladimir Shushlin2019-09-071-0/+54
| | | | Just replace RSA.new with PKey.read
* Avoid checking dns rebind protection in validationFrancisco Javier López2019-09-051-0/+37
|
* Refactor SystemHookUrlValidator and specsGeorge Koltsov2019-08-022-74/+2
| | | | | | Simplify SystemHookUrlValidator to inherit from PublicUrlValidator Refactor specs to move out shared examples to be used in both system hooks and public url validators.
* Update security/webhooks.md doc page & specsGeorge Koltsov2019-08-021-10/+15
| | | | | | Updating security/webhooks.md to match new behaviour as well as drying up few specs to extract shared examples
* Update translations in gitlab.potGeorge Koltsov2019-08-021-0/+2
|
* Add SystemHookUrlValidator specGeorge Koltsov2019-08-021-0/+51
|
* Allow blank but not nil in validationsReuben Pereira2019-07-311-19/+11
| | | | | | - The most common use case for qualified_domain_validator currently is to allow blank ([]) but not allow nil. Modify the qualified_domain_validator to support this use case.
* Add validator for qualidied domain arrayReuben Pereira2019-07-231-0/+111
| | | | | - Validate that the entries contain no unicode, html tags and are not larger than 255 characters.
* Fix color validation regexHeinrich Lee Yu2019-06-251-0/+43
| | | | Also prevents ReDoS vulnerability
* Align UrlValidator to validate_url gem implementation.Thong Kuah2019-04-112-25/+114
| | | | | | | Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement. Make use of the options attribute of the parent class ActiveModel::EachValidator. Add more options: allow_nil, allow_blank, message. Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-0/+87
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-87/+0
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-0/+87
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Fix Bitbucket importFrancisco Javier López2019-03-141-2/+7
| | | | | | | | | | | | In https://gitlab.com/gitlab-org/gitlab-ce/commit/ebf16ada856efb85424a98848c141f21e609886a we introduced a SHA validator, to ensure that the data provided in merge request diffs, was legit. Nevertheless, the validator assumed that the SHA should be 40 chars long. When we import a project from BitBucket, the retrieved SHA is shorter (12 chars long). Therefore, this validator prevented to create a valid MergeRequestDiff for ever MergeRequest (triggering an exception).
* Merge branch 'fix/email_validator' into 'master'Stan Hu2019-03-091-0/+94
|\ | | | | | | | | | | | | Align EmailValidator to validate_email gem implementation. Closes #57352 See merge request gitlab-org/gitlab-ce!24971
| * Align EmailValidator to validate_email gem implementation.Horatiu Eugen Vlad2019-03-051-0/+94
| | | | | | | | | | | | Renamed EmailValidator to DeviseEmailValidator to avoid 'email:' naming collision with ActiveModel::Validations::EmailValidator in 'validates' statement. Make use of the options attribute of the parent class ActiveModel::EachValidator. Add more options: regex.
* | Add frozen_string_literal to new filesStan Hu2019-03-041-0/+2
| |
* | Arbitrary file read via MergeRequestDiffFrancisco Javier López2019-03-041-0/+40
|/
* remove newly supported regex feature from validation error testRoger Rüttimann2019-01-141-2/+0
|
* Add table and model for error tracking settingsReuben Pereira2019-01-071-0/+51
|
* Allow URLs to be validated as ascii_onlyJames Edwards-Jones2018-12-061-0/+29
| | | | | Restricts unicode characters and IDNA deviations which could be used in a phishing attack
* Merge branch 'security-fj-crlf-injection' into 'master'Cindy Pallares2018-11-281-0/+26
| | | | | [master] Fix CRLF issue in UrlValidator See merge request gitlab/gitlabhq!2627