Support semicolon as parameter delimiter
authorJohn Firebaugh <john.firebaugh@gmail.com>
Sun, 4 Nov 2012 21:53:31 +0000 (13:53 -0800)
committerTom Hughes <tom@compton.nu>
Mon, 5 Nov 2012 08:57:05 +0000 (08:57 +0000)
http://lists.openstreetmap.org/pipermail/rails-dev/2012-November/001259.html

app/assets/javascripts/osm.js.erb

index 75562ad485fc05f4dbe427b034d60bc9a8136399..39d995c46243398fff9b4bf5b901f48f9b88b3ca 100644 (file)
@@ -23,7 +23,7 @@ OSM = {
   mapParams: function (search) {
     var params = {}, mapParams = {}, loc;
 
-    search = (search || window.location.search).replace('?', '').split('&');
+    search = (search || window.location.search).replace('?', '').split(/&|;/);
 
     for (var i = 0; i < search.length; ++i) {
       var pair = search[i],