improved validateChatGPTWebCustomData method. see #277 #168

This commit is contained in:
Mic 2025-04-28 21:03:00 +02:00
parent be78527b0b
commit 0492fa34be

View file

@ -412,7 +412,7 @@ export async function checkSparksPresence() {
}
export function validateChatGPTWebCustomData(data) {
return data.startsWith('/g/') || data == '';
return /^\/g\/[a-zA-Z0-9-]+$/.test(data) || data == '';
}
export function sanitizeChatGPTModelData(input) {