We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4146381 commit 5d3ea10Copy full SHA for 5d3ea10
playbooks/tests/files/webui-pages.py
@@ -114,7 +114,7 @@ def on_start(self):
114
try:
115
# csrf_token = self.client.cookies["csrf-token"]
116
# <meta name="csrf-token" content="pN+PkZI8OHLvYlXPXisAbwRVXeSm8hcNk5LKuysAvD979wlbEPQX+/yn0PBouxkxChEAttUMUms0V9ANDrZyLQ==" />
117
- csrf_token = re.search("<meta name=\"csrf-token\" content=\"([0-9a-zA-Z+/=]+?)\"", response.text).group(1)
+ csrf_token = re.search("<meta name=\"csrf-token\" content=\"([0-9a-zA-Z+-/=]+?)\" />", response.text).group(1)
118
except AttributeError:
119
logging.fatal("Unable to gather CSRF token")
120
raise
0 commit comments