summaryrefslogtreecommitdiff
path: root/community/meteorjs/node010.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/meteorjs/node010.patch')
-rw-r--r--community/meteorjs/node010.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/meteorjs/node010.patch b/community/meteorjs/node010.patch
new file mode 100644
index 000000000..8b252399d
--- /dev/null
+++ b/community/meteorjs/node010.patch
@@ -0,0 +1,11 @@
+--- lib/node_modules/connect/lib/middleware/static.js.orig 2013-03-23 13:30:36.479309260 +0100
++++ lib/node_modules/connect/lib/middleware/static.js 2013-03-23 13:30:13.661917828 +0100
+@@ -126,7 +126,7 @@
+ if (!root && ~path.indexOf('..')) return utils.forbidden(res);
+
+ // join / normalize from optional root dir
+- path = normalize(join(root, path));
++ path = normalize(join(root || '', path));
+
+ // malicious path
+ if (root && 0 != path.indexOf(root)) return fn