about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-20 12:20:43 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-20 12:20:43 -0500
commit483f550f9c4f76f37d840f9f52cc85478fa86bf6 (patch)
treed2105e83bb2905e1a9a9c4a0ffea29fb17859895
parent1edc2f1aeb5d8ebe217d6909b7df975c6e1b024a (diff)
fix query string sanitizer - use `query_values=` from `Addressable::URI` instead of `to_query`
-rw-r--r--app/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/url_helper.rb b/app/helpers/url_helper.rb
index 98b532d7f..3fad2d6d3 100644
--- a/app/helpers/url_helper.rb
+++ b/app/helpers/url_helper.rb
@@ -30,7 +30,7 @@ module UrlHelper
       ].include?(k)
       false
     end
-    url.query = params.to_query
+    url.query_values = params
     return url.to_s
   rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError
     return '#'