mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
fix(server): external domain url validation (#11493)
* fix(web): Changes externalDomain to IsUrl() * refactor(web): asset viewer actions (#11449) * refactor(web): asset viewer actions * motion photo slot and more refactoring fix(web): Changes externalDomain to IsUrl() --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
parent
01f8b7e458
commit
2c05ceaf50
@ -376,7 +376,8 @@ class SystemConfigReverseGeocodingDto {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SystemConfigServerDto {
|
class SystemConfigServerDto {
|
||||||
@IsString()
|
@ValidateIf((_, value: string) => value !== '')
|
||||||
|
@IsUrl({ require_tld: false, require_protocol: true, protocols: ['http', 'https'] })
|
||||||
externalDomain!: string;
|
externalDomain!: string;
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
|
Loading…
Reference in New Issue
Block a user