]> granicus.if.org Git - apache/commitdiff
More ap_pregsub error checking/logging
authorStefan Fritsch <sf@apache.org>
Mon, 7 Nov 2011 21:58:52 +0000 (21:58 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 7 Nov 2011 21:58:52 +0000 (21:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198966 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_setenvif.c

index 2db353b860f689238c0add5b260983f10bc67608..e773719b427efcfb83f45326c0cae5daeda23a7a 100644 (file)
@@ -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,