File tree 1 file changed +2
-2
lines changed
app/helpers/application_helper 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -412,15 +412,15 @@ def update_url_parms(url_parm)
412
412
413
413
url_parm_hash = preprocess_url_param ( url_parm )
414
414
query_string . merge! ( url_parm_hash )
415
- URI ::DEFAULT_PARSER . unescape ( "?#{ query_string . to_query } " )
415
+ URI ::RFC2396_PARSER . unescape ( "?#{ query_string . to_query } " )
416
416
end
417
417
418
418
def preprocess_url_param ( url_parm )
419
419
parse_questionmark = /^\? / . match ( url_parm )
420
420
parse_ampersand = /^&/ . match ( url_parm )
421
421
url_parm = parse_questionmark . post_match if parse_questionmark . present?
422
422
url_parm = parse_ampersand . post_match if parse_ampersand . present?
423
- encoded_url = URI ::DEFAULT_PARSER . escape ( url_parm )
423
+ encoded_url = URI ::RFC2396_PARSER . escape ( url_parm )
424
424
Rack ::Utils . parse_query ( URI ( "?#{ encoded_url } " ) . query )
425
425
end
426
426
You can’t perform that action at this time.
0 commit comments