Skip to content

Commit 5d3ea10

Browse files
committed
fix(tests/files/webui-pages.py): Add '-' to the list of valid CSRF chars
rh-pre-commit.version: 2.2.0 rh-pre-commit.check-secrets: ENABLED
1 parent 4146381 commit 5d3ea10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playbooks/tests/files/webui-pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def on_start(self):
114114
try:
115115
# csrf_token = self.client.cookies["csrf-token"]
116116
# <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)
117+
csrf_token = re.search("<meta name=\"csrf-token\" content=\"([0-9a-zA-Z+-/=]+?)\" />", response.text).group(1)
118118
except AttributeError:
119119
logging.fatal("Unable to gather CSRF token")
120120
raise

0 commit comments

Comments
 (0)