discourse/script
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
..
benchmarks DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
bulk_import DEV: update rubocop to version 0.77 2019-12-10 11:48:39 +11:00
demon_test FIX: Revert Demon::DemonBase back to Demon::Base (#8132) 2019-10-02 14:54:08 +10:00
import_scripts FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
.gitignore
alice.txt
analyze_sidekiq_queues.rb
bench.rb DEV: correct rake task used to grab admin key 2019-11-11 10:23:14 +11:00
biggest_objects.rb DEV: add debugging scripts for memory leaks 2019-10-03 16:36:31 +10:00
boot_mem.rb
cache_critical_dns
check_forking.rb
compile_hbs.rb
diff_heaps.rb
discourse FIX: Correct path to ImportExport module (#8227) 2019-10-23 17:27:14 +11:00
docker_test.rb DEV: Move warmup inside docker rake task 2019-10-25 16:31:05 -03:00
downsize_uploads.rb FIX: downsize_uploads script 2019-10-10 16:37:55 +02:00
measure.rb
memory-analysis
memstats.rb DEV: Apply Rubocop redundant return style 2019-11-14 15:10:51 -05:00
micro_bench.rb DEV: undo pluck_first changes to micro benchmark 2019-10-21 12:21:24 +01:00
mwrap_sidekiq DEV: add missing ultra low queue to mwrap sidekiq 2019-09-18 11:18:35 +10:00
plugin-translations.rb DEV: Remove use of `cd` in the app (#8337) 2019-11-13 09:57:39 +00:00
profile_db_generator.rb
pull_translations.rb
push_translations.rb
rails
redis_memory.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
require_profiler.rb
switch_container_ruby
test_email_settings.rb
test_hbs_compiler.rb
test_mem.rb
test_memory_leak.rb DEV: improve diagnostics on mem leak checker 2019-10-04 09:47:33 +10:00
test_pretty_text.rb
thread_detective.rb PERF: avoid spinning a thread each time we close a connection 2019-09-12 17:34:04 +10:00
user_simulator.rb
version_bump.rb