@hono/node-server
Advanced tools
@@ -103,3 +103,3 @@ "use strict"; | ||
| filename = tryDecodeURI(c.req.path); | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}/.test(filename)) { | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) { | ||
| throw new Error(); | ||
@@ -106,0 +106,0 @@ } |
@@ -79,3 +79,3 @@ // src/serve-static.ts | ||
| filename = tryDecodeURI(c.req.path); | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}/.test(filename)) { | ||
| if (/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(filename)) { | ||
| throw new Error(); | ||
@@ -82,0 +82,0 @@ } |
+1
-1
| { | ||
| "name": "@hono/node-server", | ||
| "version": "1.19.14", | ||
| "version": "1.19.15", | ||
| "description": "Node.js Adapter for Hono", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
228349
0