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 improvements to the mbox import script 2017-11-18 17:16:44 +01:00
alice.txt
analyze_sidekiq_queues.rb correct type 2019-05-22 12:28:17 +10:00
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 DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
cache_critical_dns FIX: cache_critical_dns was never caching pg replica (#7461) 2019-04-30 08:42:51 +08:00
check_forking.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
compile_hbs.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
diff_heaps.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
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 DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
memory-analysis DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
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 FIX: Modify frozen String and profile_db_generator uses category id (#8080) 2019-09-09 17:38:37 +10:00
pull_translations.rb FEATURE: English locale with international date formats 2019-05-20 13:47:20 +02:00
push_translations.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
rails DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
redis_memory.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
require_profiler.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
switch_container_ruby DEV: add script to switch ruby version from inside container 2019-03-25 17:41:24 +11:00
test_email_settings.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
test_hbs_compiler.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
test_mem.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
test_memory_leak.rb DEV: improve diagnostics on mem leak checker 2019-10-04 09:47:33 +10:00
test_pretty_text.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
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 DEV: User simulator tried to modify frozen string. 2019-08-16 17:32:17 +03:00
version_bump.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00