From: Anders S. Mortensen Date: Thu, 28 Dec 2006 13:44:37 +0000 (+0000) Subject: Only split on first occurrence of = in pseudo url. X-Git-Tag: before.append.child~68 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=035bf6e2f077c554c8633a08f2494cf385040e41;p=pazpar2-moved-to-github.git Only split on first occurrence of = in pseudo url. --- diff --git a/www/test1/index.html b/www/test1/index.html index d6d548c..88d39be 100644 --- a/www/test1/index.html +++ b/www/test1/index.html @@ -338,8 +338,8 @@ function session_restore (session) for (i = 1; i < fields.length; i++) { var pair = fields[i].split(/=/); - var key = pair[0]; - var value = pair[1]; + var key = pair.shift(); + var value = pair.join('='); var cell = document.getElementById(key); cell.value = value;