You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2026/09/22 07:52:20 UTC
svn commit: r1938416 - httpd/httpd/trunk/test/modules/proxy
Author: rjung
Date: Tue Sep 22 07:52:20 2026
New Revision: 1938416
Log:
Prevent 'f-string expression part cannot include a backslash'
Modified:
httpd/httpd/trunk/test/modules/proxy/test_06_interim_resp.py
Modified: httpd/httpd/trunk/test/modules/proxy/test_06_interim_resp.py
==============================================================================
--- httpd/httpd/trunk/test/modules/proxy/test_06_interim_resp.py Tue Sep 22 06:45:04 2026 (r1938415)
+++ httpd/httpd/trunk/test/modules/proxy/test_06_interim_resp.py Tue Sep 22 07:52:20 2026 (r1938416)
@@ -107,8 +107,10 @@ class TestStatusLineCR:
f"bare CR in status line: {status_line!r}"
assert b"X-Foobar" not in status_line, \
f"attacker text in status line: {status_line!r}"
+ # Prevent 'f-string expression part cannot include a backslash'
+ hide_backslash = b'\\r\\n\\r\\n'
assert b"X-Foobar" not in raw.split(b"\r\n\r\n")[0], \
- f"injected header in response headers: {raw.split(b'\\r\\n\\r\\n')[0]!r}"
+ f"injected header in response headers: {raw.split(hide_backslash)[0]!r}"
env.httpd_error_log.ignore_recent(
lognos=["AH00957", "AH01106", "AH01114"]