Correction du script de soumission python

This commit is contained in:
echarp 2015-02-08 15:46:58 +01:00
parent 080fe1fe3d
commit bc81e92588
1 changed files with 2 additions and 3 deletions

View File

@ -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):