@budibase/server 3.31.7 → 3.31.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +229 -229
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/src/api/controllers/static/index.ts +9 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "3.31.
|
|
4
|
+
"version": "3.31.9",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -220,5 +220,5 @@
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
|
-
"gitHead": "
|
|
223
|
+
"gitHead": "fd3896fb9777306c4a0f32479094782ab428081b"
|
|
224
224
|
}
|
|
@@ -216,7 +216,14 @@ export async function processPWAZip(ctx: UserCtx) {
|
|
|
216
216
|
const appId = context.getProdWorkspaceId()
|
|
217
217
|
|
|
218
218
|
for (const icon of iconsData.icons) {
|
|
219
|
-
|
|
219
|
+
const resolvedSrc = icon.src ? path.resolve(baseDir, icon.src) : undefined
|
|
220
|
+
if (
|
|
221
|
+
!icon.src ||
|
|
222
|
+
!icon.sizes ||
|
|
223
|
+
!resolvedSrc ||
|
|
224
|
+
!resolvedSrc.startsWith(baseDir + path.sep) ||
|
|
225
|
+
!fs.existsSync(resolvedSrc)
|
|
226
|
+
) {
|
|
220
227
|
continue
|
|
221
228
|
}
|
|
222
229
|
|
|
@@ -229,7 +236,7 @@ export async function processPWAZip(ctx: UserCtx) {
|
|
|
229
236
|
const result = await objectStore.upload({
|
|
230
237
|
bucket: ObjectStoreBuckets.APPS,
|
|
231
238
|
filename: key,
|
|
232
|
-
path:
|
|
239
|
+
path: resolvedSrc,
|
|
233
240
|
type: mimeType,
|
|
234
241
|
})
|
|
235
242
|
|