aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2011-10-27 08:44:14 -0700
committerIgor Minar2011-10-27 08:44:14 -0700
commit445680f601c55397e8cf9e8528675a2053d8f807 (patch)
tree8a54af9b399ec162af294b66ef2fb31f0f3dcc34
parentbf729d550b9589aa498957d219816e334222858b (diff)
downloadangular.js-445680f601c55397e8cf9e8528675a2053d8f807.tar.bz2
fix(nodeserver): properly escape all, not just first char
-rw-r--r--lib/nodeserver/server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nodeserver/server.js b/lib/nodeserver/server.js
index 005a2fa5..3c75a78d 100644
--- a/lib/nodeserver/server.js
+++ b/lib/nodeserver/server.js
@@ -85,7 +85,7 @@ StaticServlet.MimeMap = {
StaticServlet.prototype.handleRequest = function(req, res) {
var self = this;
- var path = ('./' + req.url.pathname).replace('//','/').replace(/%(..)/, function(match, hex){
+ var path = ('./' + req.url.pathname).replace('//','/').replace(/%(..)/g, function(match, hex){
return String.fromCharCode(parseInt(hex, 16));
});
var parts = path.split('/');