From: Chocobozzz Date: Fri, 9 Aug 2019 09:49:37 +0000 (+0200) Subject: Fix avatar url validation X-Git-Tag: v1.4.0-rc.1~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5bb2eb5660c87700bc70fe82219c1a84e7c7b177;p=oweals%2Fpeertube.git Fix avatar url validation --- diff --git a/server/models/avatar/avatar.ts b/server/models/avatar/avatar.ts index 7a370bcd3..b40144592 100644 --- a/server/models/avatar/avatar.ts +++ b/server/models/avatar/avatar.ts @@ -24,7 +24,7 @@ export class AvatarModel extends Model { filename: string @AllowNull(true) - @Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl')) + @Is('AvatarFileUrl', value => throwIfNotValid(value, isActivityPubUrlValid, 'fileUrl', true)) @Column fileUrl: string