Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL: Don't attempt to send headers if already sent #1222

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Jan 23, 2024

This fixes a few PHP notices in the production logs

dcde0c3 did this for formats/types, but not months and countries. That leads to a PHP notice when pentesters pass invalid input.
I haven't been able to reproduce the problem, but production is throwing notices for this on some HTTPS `wp-cron.php` URLs. `wp-cron.php` sends headers as one of the first things in the script, before loading WP. `is_ssl()` should be returning `true`, though, which would trigger the early return.

Regardless, this change should fix it.
@iandunn iandunn added this to the Events: Promotion milestone Jan 23, 2024
@iandunn iandunn self-assigned this Jan 23, 2024
@iandunn iandunn marked this pull request as ready for review January 23, 2024 22:43
@iandunn iandunn merged commit 96e0c6f into production Jan 23, 2024
3 checks passed
@iandunn iandunn deleted the ssl-headers branch January 23, 2024 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant