Correction du script de soumission python
This commit is contained in:
parent
080fe1fe3d
commit
bc81e92588
@ -218,9 +218,8 @@ def getAuthToken(baseUrl):
|
||||
|
||||
curl.perform()
|
||||
|
||||
m = re.search(r'(<meta content="(.*?)" name="csrf-token" />)', contents.getvalue())
|
||||
m = re.search(r'"(.*?)"', m.group())
|
||||
return m.group().strip('"')
|
||||
m = re.findall(r'(<meta name="csrf-token" content="(.*?)" />)', contents.getvalue())
|
||||
return m[0][1]
|
||||
|
||||
def SubmitEvent(event, testOutputFile):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user