Skip to content

Commit

Permalink
Fix: MetaObj XML-Import: XML-Parsing of list-like attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Jan 3, 2024
1 parent 4510beb commit 62c4afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/zms/_xmllib.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def getXmlType(v):
def getXmlTypeSaveValue(v, attrs):
# Strip.
if isinstance(v, str):
while len(v) > 0 and v[0] <= ' ':
while len(v) > 0 and v[0] <= ' ' and v[0] != '\t':
v = v[1:]
while len(v) > 0 and v[-1] <= ' ':
while len(v) > 0 and v[-1] <= ' ' and v[-1] != '\t':
v = v[:-1]
# Type.
t = attrs.get('type', '?')
Expand Down

0 comments on commit 62c4afe

Please sign in to comment.