Skip to content

Commit be5c8d1

Browse files
committed
code format
1 parent a55bfe9 commit be5c8d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_httpserver/request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def get(
5050
) -> Union[str, bytes, None]:
5151
"""Get the value of a field."""
5252
if safe:
53-
return self._encode_html_entities(self._storage.get(field_name, [default])[0])
53+
return self._encode_html_entities(
54+
self._storage.get(field_name, [default])[0]
55+
)
5456

5557
_debug_warning_nonencoded_output()
5658
return self._storage.get(field_name, [default])[0]
@@ -374,4 +376,4 @@ def _debug_warning_nonencoded_output():
374376
"WARNING: Setting safe to False makes XSS vulnerabilities possible by "
375377
"allowing access to raw untrusted values submitted by users. If this data is reflected "
376378
"or shown within HTML without proper encoding it could enable Cross-Site Scripting."
377-
)
379+
)

0 commit comments

Comments
 (0)