Skip to content

core: Log the malformed script header line, not the last output line [2.4.x] - #1089

Merged
arturobernalg merged 1 commit into
apache:2.4.xfrom
arturobernalg:backport/httpd-69916-script-bad-header-log
Nov 26, 2026
Merged

arturobernalg merged 1 commit into
apache:2.4.xfrom
arturobernalg:backport/httpd-69916-script-bad-header-log

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

Backport of #1082 (7545008 on trunk) to 2.4.x. Clean cherry-pick.

test_12_scgi_bad_header.py fails on 2.4.x without the fix and passes with it.

BZ: https://bz.apache.org/bugzilla/show_bug.cgi?id=69916


  • Code follows the httpd style guide.
  • No new log messages.
  • changes-entries/69916.txt included.
  • pyhttpd test in test/modules/proxy; modules/proxy passes locally.

…pache#1082)

ap_scan_script_header_err_core_ex() soaked up the rest of the output into
the same buffer before logging the bad header, so the error named the
last line read (often the body), not the malformed one.

PR 69916

(cherry picked from commit 7545008)
@arturobernalg
arturobernalg merged commit fabad1b into apache:2.4.x Nov 26, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants