mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Allow /data/logos as a url.
This commit is contained in:
parent
0fcb8b9f2e
commit
e27f45809b
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ const LogoForm = ({ logo = null, isOpen, onClose }) => {
|
|||
.required('URL is required')
|
||||
.test('valid-url-or-path', 'Must be a valid URL or local file path', (value) => {
|
||||
if (!value) return false;
|
||||
// Allow local file paths starting with /logos/
|
||||
if (value.startsWith('/logos/')) return true;
|
||||
// Allow local file paths starting with /data/logos/
|
||||
if (value.startsWith('/data/logos/')) return true;
|
||||
// Allow valid URLs
|
||||
try {
|
||||
new URL(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue