Skip to content

Commit a8f5233

Browse files
committed
add URI encoding to method as well
1 parent 7c71400 commit a8f5233

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/zenoss/restapi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def custom_rest(dev_path, req_path, callback_func = nil, callback_attr=nil)
5757
end
5858
meth << "&filterFunc=#{callback_func}" unless callback_func.nil?
5959
meth << "&filterAttr=#{callback_attr}" unless callback_attr.nil?
60-
meth = "#{URI.encode(dev_path)}/#{meth}"
60+
meth = "#{URI.encode(dev_path)}/#{URI.encode(meth)}"
6161
puts "METHOD: #{meth}" if $DEBUG
6262
rest(meth)
6363
end

0 commit comments

Comments
 (0)