nuxt4, and some changes on packages
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
export { c as createIPX, b as createIPXH3App, a as createIPXH3Handler, e as createIPXNodeServer, f as createIPXPlainServer, d as createIPXWebServer, g as ipxFSStorage, i as ipxHttpStorage } from './shared/ipx.b027cc1c.mjs';
|
||||
export { c as createIPX, b as createIPXH3App, a as createIPXH3Handler, e as createIPXNodeServer, f as createIPXPlainServer, d as createIPXWebServer, g as ipxFSStorage, i as ipxHttpStorage } from './shared/ipx.e4d5b25d.mjs';
|
||||
import { createError } from 'h3';
|
||||
import 'defu';
|
||||
import 'ufo';
|
||||
|
||||
Generated
Vendored
+1
-1
@@ -692,7 +692,7 @@ function ipxFSStorage(_options = {}) {
|
||||
const fs = await _getFS();
|
||||
for (const dir of dirs) {
|
||||
const filePath = join(dir, id);
|
||||
if (!isValidPath(filePath) || !filePath.startsWith(dir)) {
|
||||
if (!isValidPath(filePath) || !filePath.startsWith(dir + "/")) {
|
||||
throw createError({
|
||||
statusCode: 403,
|
||||
statusText: `IPX_FORBIDDEN_PATH`,
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ipx",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
"repository": "unjs/ipx",
|
||||
"description": "High performance, secure and easy-to-use image optimizer.",
|
||||
"license": "MIT",
|
||||
|
||||
Reference in New Issue
Block a user