mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 06:50:25 +02:00
added realtime topic length validator
This commit is contained in:
1 parent
8c71a291ff
commit
83d91b3dd5
2 files changed
+52
-1
No files matched your search
+4
-1
@@ -160,7 +160,10 @@ type realtimeSubscribeForm struct {
|
||||
func (form *realtimeSubscribeForm) validate() error {
|
||||
return validation.ValidateStruct(form,
|
||||
validation.Field(&form.ClientId, validation.Required, validation.Length(1, 255)),
|
||||
validation.Field(&form.Subscriptions, validation.Length(0, 1000)),
|
||||
validation.Field(&form.Subscriptions,
|
||||
validation.Length(0, 1000),
|
||||
validation.Each(validation.Length(0, 2500)),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user