Revert "fix: validate logo index entries before building URLs"

This reverts commit 85a7d19769.
This commit is contained in:
Subagent 5
2026-01-28 21:50:32 -08:00
parent d5166a062c
commit fc36229eaf

View File

@@ -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}`)
}