Skip to content

Commit

Permalink
Merge pull request #77 from tasn/limits
Browse files Browse the repository at this point in the history
vCard: fix validation of N and FN fields to be within the correct range
  • Loading branch information
wpercy authored Jun 20, 2017
2 parents dcf72c7 + 1d083fc commit ef4d034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vobject/vcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class VCard3_0(VCardBehavior):
isComponent = True
sortFirst = ('version', 'prodid', 'uid')
knownChildren = {
'N': (1, 1, None), # min, max, behaviorRegistry id
'FN': (1, 1, None),
'N': (0, 1, None), # min, max, behaviorRegistry id
'FN': (1, None, None),
'VERSION': (1, 1, None), # required, auto-generated
'PRODID': (0, 1, None),
'LABEL': (0, None, None),
Expand Down

0 comments on commit ef4d034

Please sign in to comment.