diff options
Diffstat (limited to 'auth_mellon_handler.c')
-rw-r--r-- | auth_mellon_handler.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c index cdc4c28..f21f9bb 100644 --- a/auth_mellon_handler.c +++ b/auth_mellon_handler.c @@ -2307,8 +2307,15 @@ static int am_handle_repost(request_rec *r) } mod_cfg = am_get_mod_cfg(r->server); + + if (!mod_cfg->post_dir) { + ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, + "Repost query without MellonPostDirectory."); + return HTTP_NOT_FOUND; + } + query = r->parsed_uri.query; - + enctype = am_extract_query_parameter(r->pool, query, "enctype"); if (enctype == NULL) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, |