mirror of
https://github.com/atom/atom.git
synced 2026-01-21 04:48:12 -05:00
Decode param name and value
These can contain percent encodings that will need to be decoded before used.
This commit is contained in:
@@ -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 @@
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user