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 a530388 commit 8ceba67Copy full SHA for 8ceba67
lib/redmine_gtt_print/mapfish.rb
@@ -21,7 +21,8 @@ def layouts(print_config)
21
end
22
23
def get_capabilities(print_config)
24
- r = HTTParty.get "#{@host}/print/#{print_config}/capabilities.json"
+ str = URI.escape(print_config)
25
+ r = HTTParty.get "#{@host}/print/#{str}/capabilities.json"
26
if r.success?
27
JSON.parse r.body
28
else
@@ -62,7 +63,8 @@ def get_print(ref)
62
63
private
64
65
def request_print(json, print_config, format)
- url = "#{@host}/print/#{print_config}/report.#{format}"
66
67
+ url = "#{@host}/print/#{str}/report.#{format}"
68
if Rails.env.development?
69
(File.open(Rails.root.join("tmp/mapfish.json"), "wb") << json).close
70
0 commit comments