Add quote protection for password containing it (#858)

Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
Warrenberberd
2025-10-01 07:46:08 +02:00
committed by GitHub
parent a916d93779
commit d27f57c27c

View File

@@ -419,6 +419,8 @@ def _post_request(req: V1RequestBase, driver: WebDriver):
value = unquote(parts[1]) if len(parts) > 1 else ''
except Exception:
value = parts[1] if len(parts) > 1 else ''
# Protection of " character, for syntax
value=value.replace('"','&quot;')
post_form += f'<input type="text" name="{escape(quote(name))}" value="{escape(quote(value))}"><br>'
post_form += '</form>'
html_content = f"""