mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-04 16:03:10 +00:00
Add configurable home background image with blur and dim controls
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
This commit is contained in:
parent
85ab4d6c9f
commit
aa0a0550ca
@ -2213,7 +2213,7 @@ export default {
|
|||||||
isSafeBackgroundUrl(url) {
|
isSafeBackgroundUrl(url) {
|
||||||
if (!url) return false;
|
if (!url) return false;
|
||||||
const trimmed = url.trim();
|
const trimmed = url.trim();
|
||||||
if (trimmed.toLowerCase().startsWith("javascript:")) return false;
|
if (/^(javascript|data|vbscript):/i.test(trimmed)) return false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const parsed = new URL(trimmed, window.location.origin);
|
const parsed = new URL(trimmed, window.location.origin);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user