mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Revert "fix: validate logo index entries before building URLs"
This reverts commit 85a7d19769.
This commit is contained in:
@@ -515,15 +515,7 @@ export const useWorkflowTemplatesStore = defineStore(
|
||||
|
||||
function getLogoUrl(provider: string): string {
|
||||
const logoPath = logoIndex.value[provider]
|
||||
if (
|
||||
!logoPath ||
|
||||
logoPath.includes('..') ||
|
||||
logoPath.startsWith('/') ||
|
||||
!logoPath.startsWith('logo/') ||
|
||||
!/\.(png|svg|jpg|jpeg)$/i.test(logoPath)
|
||||
) {
|
||||
return ''
|
||||
}
|
||||
if (!logoPath) return ''
|
||||
return api.fileURL(`/templates/${logoPath}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user