diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-01-07 17:55:21 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-01-07 17:55:21 +0000 |
commit | f40b5860d76a8ea5d964260834a6e83516b0f1fd (patch) | |
tree | 2a8e92896130697178f5c989e49fa686f66ce073 /app/validators | |
parent | 549ee8ada3b59278871a89720632584bc5cc11df (diff) | |
download | gitlab-ce-f40b5860d76a8ea5d964260834a6e83516b0f1fd.tar.gz |
Add table and model for error tracking settings
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/url_validator.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/validators/url_validator.rb b/app/validators/url_validator.rb index 5feb0b0f05b..d3e32818dc7 100644 --- a/app/validators/url_validator.rb +++ b/app/validators/url_validator.rb @@ -26,6 +26,7 @@ # - allow_local_network: Allow urls pointing to private network addresses. Default: true # - ports: Allowed ports. Default: all. # - enforce_user: Validate user format. Default: false +# - enforce_sanitization: Validate that there are no html/css/js tags. Default: false # # Example: # class User < ActiveRecord::Base @@ -70,7 +71,8 @@ class UrlValidator < ActiveModel::EachValidator allow_localhost: true, allow_local_network: true, ascii_only: false, - enforce_user: false + enforce_user: false, + enforce_sanitization: false } end |