discourse/lib/validators
Martin Brennan edbc356593
FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528)
The following methods have long been deprecated in ruby due to flaws in their implementation per http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-core/29293?29179-31097:

URI.escape
URI.unescape
URI.encode
URI.unencode
escape/encode are just aliases for one another. This PR uses the Addressable gem to replace these methods with its own encode, unencode, and encode_component methods where appropriate.

I have put all references to Addressable::URI here into the UrlHelper to keep them corralled in one place to make changes to this implementation easier.

Addressable is now also an explicit gem dependency.
2019-12-12 12:49:21 +10:00
..
allow_user_locale_enabled_validator.rb
allowed_ip_address_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
alternative_reply_by_email_addresses_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
category_search_priority_weights_validator.rb
censored_words_validator.rb FIX: Abort CensoredWordsValidator early if censored_words_regexp nil (#8375) 2019-11-20 20:05:06 +10:00
color_list_validator.rb
email_setting_validator.rb
email_validator.rb
enable_invite_only_validator.rb
enable_local_logins_via_email_validator.rb
enable_private_email_messages_validator.rb
enable_sso_validator.rb
external_system_avatars_validator.rb
group_setting_validator.rb
integer_setting_validator.rb
ip_address_format_validator.rb
markdown_typographer_quotation_marks_validator.rb
max_emojis_validator.rb
max_username_length_validator.rb DEV: pluck_first 2019-10-21 12:08:20 +01:00
min_username_length_validator.rb DEV: pluck_first 2019-10-21 12:08:20 +01:00
password_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
pop3_polling_enabled_setting_validator.rb
post_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
quality_title_validator.rb
regex_presence_validator.rb
regex_setting_validation.rb
regex_setting_validator.rb
reply_by_email_address_validator.rb
reply_by_email_enabled_validator.rb
sso_overrides_email_validator.rb
string_setting_validator.rb
stripped_length_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
timezone_validator.rb FEATURE: Add timezone to core user_options (#8380) 2019-11-25 10:49:27 +10:00
topic_title_length_validator.rb
unicode_username_validator.rb
unicode_username_whitelist_validator.rb
unique_among_validator.rb
upload_validator.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
url_validator.rb FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
user_full_name_validator.rb
username_setting_validator.rb
watched_words_validator.rb FEATURE: topic title is validated for blocked words (#8127) 2019-10-02 10:38:34 +10:00