summaryrefslogtreecommitdiffstats
path: root/auth_mellon_handler.c
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-03-06 12:53:38 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-03-06 12:53:38 +0000
commit81cf686843634f2e2ff70db6553ef712c531ced0 (patch)
tree6073c55be0e7b1564886a72f9710a56829a94dda /auth_mellon_handler.c
parent5ba60b7ad9f9eff2a7eabcf39c05de6e3e6d8437 (diff)
downloadmod_auth_mellon-81cf686843634f2e2ff70db6553ef712c531ced0.tar.gz
mod_auth_mellon-81cf686843634f2e2ff70db6553ef712c531ced0.tar.xz
mod_auth_mellon-81cf686843634f2e2ff70db6553ef712c531ced0.zip
Disable replay of POST request by default.
Since we are going to disable autocreation of the POST data directory, we will need to disable POST replay by default. This patch adds the MellonPostReplay option, which can be used to enable and disable the POST replay functionality on a per-location basis. git-svn-id: https://modmellon.googlecode.com/svn/trunk@177 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon_handler.c')
-rw-r--r--auth_mellon_handler.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c
index 9e9fbc3..cdc4c28 100644
--- a/auth_mellon_handler.c
+++ b/auth_mellon_handler.c
@@ -3063,8 +3063,14 @@ static int am_start_auth(request_rec *r)
/* If this is a POST request, attempt to save it */
if (r->method_number == M_POST) {
- if (am_save_post(r, &return_to) != OK)
- return HTTP_INTERNAL_SERVER_ERROR;
+ if (CFG_VALUE(cfg, post_replay)) {
+ if (am_save_post(r, &return_to) != OK)
+ return HTTP_INTERNAL_SERVER_ERROR;
+ } else {
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
+ "POST data dropped because we do not have a"
+ " MellonPostReplay is not enabled.");
+ }
}
/* Check if IdP discovery is in use. */