From: Jeff Trawick Date: Wed, 10 Jan 2001 19:23:25 +0000 (+0000) Subject: only handle the request if server-info is the handler X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83b77a0d645da156c0754e2c77e4159c38bf904c;p=apache only handle the request if server-info is the handler Submitted by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87645 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index 7cc0bc69b5..e69d6cd512 100644 --- a/modules/generators/mod_info.c +++ b/modules/generators/mod_info.c @@ -275,6 +275,9 @@ static int display_info(request_rec *r) server_rec *serv = r->server; int comma = 0; + if (strcmp(r->handler, "server-info")) + return DECLINED; + r->allowed |= (1 << M_GET); if (r->method_number != M_GET) return DECLINED;