summaryrefslogtreecommitdiff
path: root/lib/gitlab/utils.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-01-311-1/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-01-251-1/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-11-021-4/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-10-201-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-04-291-4/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-03-041-0/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-03-031-0/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-02-081-0/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-12-081-10/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-281-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-011-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-06-011-0/+18
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-041-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-061-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-01-151-0/+12
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-11-021-0/+30
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-08-051-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-221-8/+28
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-151-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-151-0/+18
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-251-1/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-141-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-281-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-211-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-041-0/+9
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-261-3/+13
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-081-0/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-311-10/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-231-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-101-8/+0
|
* Frozen string cannot change encodingfrozen_string_spec_supportThong Kuah2019-07-261-1/+1
| | | | | | | | | This was shown in specs but surely this will be happening in application code as well if this method is passes a frozen string. We were also trying to force_encode a OmniAuth::AuthHash which had the very confusing behaviour of returning nil when it was sent a method that it did not define. Fix that by only force_encoding a String.
* [ADD] outbound requests whitelistReuben Pereira2019-07-241-0/+7
| | | | Signed-off-by: Istvan szalai <istvan.szalai@savoirfairelinux.com>
* Backport try_megabytes_to_bytes from EEYorick Peterse2019-03-121-0/+6
| | | | | | | | | EE adds this method to Gitlab::Utils, which is also required by our SimpleCov helper. This prevents us from injecting EE modules into Gitlab::Utils, because the necessary bits for this are not yet in place. To work around this we just backport try_megabytes_to_bytes, as there's no particular reason to keep this in EE only.
* Add config_options|variables to BuildMetadatakamil-refactor-ci-builds-v5Kamil Trzciński2019-01-041-0/+10
| | | | | | | | | | | These are data columns that store runtime configuration of build needed to execute it on runner and within pipeline. The definition of this data is that once used, and when no longer needed (due to retry capability) they can be freely removed. They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking support for json datatype on old enough version).
* Fix a frozen string error in lib/gitlab/utils.rbRémy Coutable2018-12-101-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '54857-fix-templates-path-traversal' into 'master'Cindy Pallares2018-12-061-0/+9
|\ | | | | | | | | | | | | [master]: Prevent a path traversal attack on global file templates Closes #2745 See merge request gitlab/gitlabhq!2677
| * Prevent a path traversal attack on global file templatesNick Thomas2018-12-051-0/+9
| | | | | | | | | | | | The API permits path traversal characters like '../' to be passed down to the template finder. Detect these requests and cause them to fail with a 500 response code.
* | Pad encryption keys with UTF-8 0 instead of \0 charGrzegorz Bizon2018-11-281-1/+1
| |
* | Improve token authenticable tests and exceptionsGrzegorz Bizon2018-11-271-1/+2
| |
* | Fix static analysis in utf8 helper methodsGrzegorz Bizon2018-11-231-1/+1
| |
* | Ensure that db encryption keys have proper bytesizeGrzegorz Bizon2018-11-221-0/+14
|/
* Add a helper method to append path to a base URL4459-redirect-users-back-to-secondary-after-logout-loginDouglas Barbosa Alexandre2018-11-061-0/+5
| | | | | | | | | | | In Ruby 2.4, `URI.join("http://test//", "a").to_s` will remove the double slash, however it's not the case in Ruby 2.5. Using chomp should work better for the intention, as we're not trying to allow things like ../ or / paths resolution. This helper method append path to host, making sure there's one single slash as path separator.
* Enable frozen string for lib/gitlab/*.rbgfyoung2018-10-221-0/+2
|
* Backport of EE !4989backport-of-rd-3429-enabling-maximum-file-size-limit-in-repository-causes-pushes-to-failRubén Dávila2018-04-111-0/+4
|
* Add custom additonal email text to all emailsce-4474-custom-additional-text-in-confirmation-emailEric Eastwood2018-04-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ee/issues/4474 Conflicts: db/schema.rb ee/app/controllers/ee/admin/application_settings_controller.rb ee/app/helpers/ee/application_settings_helper.rb ee/app/models/ee/application_setting.rb ee/app/models/license.rb ee/app/views/layouts/service_desk.html.haml ee/app/views/notify/approved_merge_request_email.html.haml ee/app/views/notify/service_desk_new_note_email.text.erb ee/app/views/notify/service_desk_thank_you_email.text.erb ee/app/views/notify/unapproved_merge_request_email.html.haml ee/lib/ee/api/entities.rb ee/spec/controllers/admin/application_settings_controller_spec.rb ee/spec/models/application_setting_spec.rb ee/spec/requests/api/settings_spec.rb lib/api/settings.rb spec/mailers/previews/notify_preview.rb
* Gitlab::Utils - backport `.ensure_array_from_string` from EEMario de la Ossa2018-03-061-0/+8
|
* Merge branch ↵Robert Speicher2018-01-161-0/+4
| | | | | | | | | | | | '41293-fix-command-injection-vulnerability-on-system_hook_push-queue-through-web-hook' into 'security-10-3' Don't allow line breaks on HTTP headers See merge request gitlab/gitlabhq!2277 (cherry picked from commit 7fc0a6fc096768a5604d6dd24d7d952e53300c82) 073b8f9c Don't allow line breaks on HTTP headers
* Backport `which` from EEMichael Kozono2017-12-011-0/+17
|
* Add a linter for PO filesBob Van Landuyt2017-08-311-0/+4
|