We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17f67c commit b1395caCopy full SHA for b1395ca
lib/java_buildpack/util/sanitizer.rb
@@ -36,11 +36,13 @@ def handle_params(params)
36
37
query_params = ''
38
39
- params.each do |key, _|
40
- params[key] = '***' if key.match(keywords)
41
- query_params += key + '=' + params[key] + '&'
+ params.split("&").each do |single_param|
+ k, v = single_param.split("=")
+ if k.match(keywords)
42
+ v = "***"
43
+ end
44
+ query_params += k + '=' +v + '&'
45
end
-
46
query_params
47
48
@@ -53,8 +55,7 @@ def sanitize_uri
53
55
rich_uri.password = nil
54
56
57
if rich_uri.query
- params = (URI.decode_www_form rich_uri.query).to_h
- query_params = handle_params(params)
58
+ query_params = handle_params(rich_uri.query)
59
rich_uri.query = query_params.chop
60
61
0 commit comments