MContagious / neutron

Automatically exported from code.google.com/p/neutron
GNU General Public License v2.0
0 stars 0 forks source link

auth.py & comma in qop #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Regex in line 176 of auth.py doesn't support values like qop="auth, auth-int"

Original issue reported on code.google.com by AmneZiaT...@gmail.com on 21 Jul 2008 at 4:25

GoogleCodeExporter commented 8 years ago
fix:
       for pair in re.findall(r'(.*?)=(".*?"|[^"]*?)(,|$)',data):
        key = pair[0].strip(' ')
        value = pair[1].strip('"')
        ##key,value=pair.split('=', 1)
            ##if value[:1]=='"' and value[-1:]=='"': value=value[1:-1]
            chal[key]=value

Original comment by AmneZiaT...@gmail.com on 21 Jul 2008 at 6:27

GoogleCodeExporter commented 8 years ago

Original comment by TB0h...@gmail.com on 23 Dec 2008 at 6:51