diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-20 12:20:43 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-20 12:20:43 -0500 |
commit | 483f550f9c4f76f37d840f9f52cc85478fa86bf6 (patch) | |
tree | d2105e83bb2905e1a9a9c4a0ffea29fb17859895 | |
parent | 1edc2f1aeb5d8ebe217d6909b7df975c6e1b024a (diff) |
fix query string sanitizer - use `query_values=` from `Addressable::URI` instead of `to_query`
-rw-r--r-- | app/helpers/url_helper.rb | 2 |
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 '#' |