Security fix (#9727)

* Add max limit for 'skip' parameter
This commit is contained in:
Oliver 2025-06-02 22:43:48 +10:00 committed by GitHub
parent 314b161076
commit 2a7f5f94c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class LabelPrintingOptionsSerializer(serializers.Serializer):
label=_('Skip Labels'),
help_text=_('Skip this number of labels when printing label sheets'),
min_value=0,
max_value=500,
)
border = serializers.BooleanField(