From 26b72d6b6c2b220a4efa8f4ff4358be09430420f Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 2 Aug 2022 21:01:58 +0200 Subject: [PATCH] not allowing spaces or double quotes in custom background --- frontend/src/ts/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/config.ts b/frontend/src/ts/config.ts index 24dcfe741..9b1e2ed7e 100644 --- a/frontend/src/ts/config.ts +++ b/frontend/src/ts/config.ts @@ -1632,7 +1632,7 @@ export function setCustomBackground(value: string, nosave?: boolean): boolean { (/(https|http):\/\/(www\.|).+\..+\/.+(\.png|\.gif|\.jpeg|\.jpg)/gi.test( value ) && - !/[<>]/.test(value)) || + !/[<> "]/.test(value)|| value == "" ) { config.customBackground = value;