discourse/app/helpers
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
..
application_helper.rb FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
common_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
email_helper.rb FEATURE: customization of html emails (#7934) 2019-07-30 15:05:08 -04:00
embed_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
emoji_helper.rb FIX: ensures emoji helper is working with custom emojis (#7843) 2019-07-03 09:23:40 +02:00
list_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topics_helper.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_notifications_helper.rb FIX: email excerpts for posts starting with a quote were displaying a username 2019-11-19 12:35:23 -05:00