summaryrefslogtreecommitdiff
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
parent559487172d584d04b8175a3cdb97361582291fe9 (diff)
downloadtaginfo-f0468c3c5ad6adcaba022ab5b989a4792706e135.tar
taginfo-f0468c3c5ad6adcaba022ab5b989a4792706e135.tar.gz
fix url for josm
-rw-r--r--taginfo-config-example.json3
-rw-r--r--web/lib/utils.rb2
2 files changed, 3 insertions, 2 deletions
diff --git a/taginfo-config-example.json b/taginfo-config-example.json
index 51e923e..bd8e978 100644
--- a/taginfo-config-example.json
+++ b/taginfo-config-example.json
@@ -32,7 +32,8 @@
"max_results": 1000,
// URL prefix for the XAPI/JOSM links on the key and tag pages.
// "url_prefix": "http://www.informationfreeway.org/api/0.6/"
- "url_prefix": "http://open.mapquestapi.com/xapi/api/0.6/"
+ // "url_prefix": "http://open.mapquestapi.com/xapi/api/0.6/"
+ "url_prefix": "http://overpass-api.de/api/xapi_meta?"
},
"opensearch": {
// For the OpenSearchDescription. You have to change at least the shortname and the contact for your instance.
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)