Skip to content

Commit

Permalink
fix digest data parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepelux committed Jan 8, 2024
1 parent 8b439b5 commit 2175bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sippts/lib/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def parse_digest(buffer):
data['algorithm'] = 'MD5'

for header in headers:
m = re.search('username=\"([a-z|A-Z|0-9|-|_]+)\"', header)
m = re.search('username=\"([a-z|A-Z|0-9|-|_|\.|:]+)\"', header)
if m:
data['username'] = '%s' % (m.group(1))
else:
Expand All @@ -645,7 +645,7 @@ def parse_digest(buffer):
else:
data['realm'] = ''

m = re.search('nonce=\"([a-z|A-Z|0-9|\/|\+|\=]+)\"', header)
m = re.search('nonce=\"([a-z|A-Z|0-9|\/|\+|\=|:|\|_|-|\.]+)\"', header)
if m:
data['nonce'] = '%s' % (m.group(1))
else:
Expand Down

0 comments on commit 2175bad

Please sign in to comment.