mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user