Skip to content

fix for GH-8157, activate sapi module before POST handling to allow to apply user.ini #8955

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main/SAPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ SAPI_API void sapi_activate(void)
}
SG(rfc1867_uploaded_files) = NULL;

if (sapi_module.activate) {
sapi_module.activate();
}
/* Handle request method */
if (SG(server_context)) {
if (PG(enable_post_data_reading)
Expand All @@ -468,9 +471,6 @@ SAPI_API void sapi_activate(void)
/* Cookies */
SG(request_info).cookie_data = sapi_module.read_cookies();
}
if (sapi_module.activate) {
sapi_module.activate();
}
if (sapi_module.input_filter_init) {
sapi_module.input_filter_init();
}
Expand Down