Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5fc1e8b

Browse files
committed
Fix for an Issue #142
1 parent 432b567 commit 5fc1e8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

thirdparty/clientform/clientform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def unescape_charref(data, encoding):
241241
name, base = data, 10
242242
if name.startswith("x"):
243243
name, base= name[1:], 16
244+
elif not name.isdigit():
245+
base = 16
244246
uc = unichr(int(name, base))
245247
if encoding is None:
246248
return uc

0 commit comments

Comments
 (0)