From 5c2b7b400db07171d34e3738fa41beafc75e3212 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 19 Dec 2012 15:33:32 -0800 Subject: [PATCH] Decode param name and value These can contain percent encodings that will need to be decoded before used. --- static/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index e55a9502e..e65255bd2 100644 --- a/static/index.html +++ b/static/index.html @@ -8,7 +8,7 @@ var params = window.location.search.substring(1).split('&') params.forEach(function(param) { var pair = param.split("=") - window.location.params[pair[0]] = pair[1]; + window.location.params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); }); window.resourcePath = window.location.params.resourcePath @@ -30,4 +30,3 @@ -