aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-02-25 17:20:48 +0100
committerJochen Topf <jochen@topf.org>2012-02-25 17:20:48 +0100
commitf0468c3c5ad6adcaba022ab5b989a4792706e135 (patch)
treeacb966c1a707976da5217c39a0b0f30eb1096632 /web/lib
parent559487172d584d04b8175a3cdb97361582291fe9 (diff)
downloadtaginfo-f0468c3c5ad6adcaba022ab5b989a4792706e135.tar
taginfo-f0468c3c5ad6adcaba022ab5b989a4792706e135.tar.gz
fix url for josm
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/utils.rb b/web/lib/utils.rb
index c384940..01aedbe 100644
--- a/web/lib/utils.rb
+++ b/web/lib/utils.rb
@@ -67,7 +67,7 @@ def xapi_link(element, key, value=nil)
end
def josm_link(element, key, value=nil)
- '<span class="button">' + external_link('josm_button', 'JOSM', 'http://localhost:8111/import?url=' + xapi_url(element, key, value), true) + '</span>'
+ '<span class="button">' + external_link('josm_button', 'JOSM', 'http://localhost:8111/import?url=' + Rack::Utils::escape(xapi_url(element, key, value)), true) + '</span>'
end
def external_link(id, title, link, new_window=false)