We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a55bfe9 commit be5c8d1Copy full SHA for be5c8d1
1 file changed
adafruit_httpserver/request.py
@@ -50,7 +50,9 @@ def get(
50
) -> Union[str, bytes, None]:
51
"""Get the value of a field."""
52
if safe:
53
- return self._encode_html_entities(self._storage.get(field_name, [default])[0])
+ return self._encode_html_entities(
54
+ self._storage.get(field_name, [default])[0]
55
+ )
56
57
_debug_warning_nonencoded_output()
58
return self._storage.get(field_name, [default])[0]
@@ -374,4 +376,4 @@ def _debug_warning_nonencoded_output():
374
376
"WARNING: Setting safe to False makes XSS vulnerabilities possible by "
375
377
"allowing access to raw untrusted values submitted by users. If this data is reflected "
378
"or shown within HTML without proper encoding it could enable Cross-Site Scripting."
- )
379
0 commit comments