]> granicus.if.org Git - apache/commitdiff
only handle the request if server-info is the handler
authorJeff Trawick <trawick@apache.org>
Wed, 10 Jan 2001 19:23:25 +0000 (19:23 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 10 Jan 2001 19:23:25 +0000 (19:23 +0000)
Submitted by: Greg Stein

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87645 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_info.c

index 7cc0bc69b504a871b43c241ea1ac42b5a79cd9ee..e69d6cd51264ab7120da85772ecca2b094c94e8b 100644 (file)
@@ -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;