From: Stefan Fritsch Date: Mon, 7 Nov 2011 21:58:52 +0000 (+0000) Subject: More ap_pregsub error checking/logging X-Git-Tag: 2.3.15~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca96890328d15b4cfdac7b75c270012feb8a46ce;p=apache More ap_pregsub error checking/logging git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198966 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/metadata/mod_setenvif.c b/modules/metadata/mod_setenvif.c index 2db353b860..e773719b42 100644 --- a/modules/metadata/mod_setenvif.c +++ b/modules/metadata/mod_setenvif.c @@ -607,6 +607,13 @@ static int match_headers(request_rec *r) apr_table_setn(r->subprocess_env, elts[j].key, replaced); } + else { + ap_log_rerror(APLOG_MARK, APLOG_CRIT, 0, r, + "Regular expression replacement " + "failed for '%s', value too long?", + elts[j].key); + return HTTP_INTERNAL_SERVER_ERROR; + } } else { apr_table_setn(r->subprocess_env, elts[j].key,