From: Jim Jagielski Date: Tue, 2 Oct 2007 21:21:04 +0000 (+0000) Subject: Ensure the URI is "*" and not something like "*foo" X-Git-Tag: 2.3.0~1360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2213956049ce670449423768dae8f914b4182796;p=apache Ensure the URI is "*" and not something like "*foo" Oh, last commit was supposed to say we need to return DONE so we don't invoke any handlers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@581389 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 94c55a6a7f..e1a2efd3e9 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -236,7 +236,8 @@ static int http_create_request(request_rec *r) static int http_send_options(request_rec *r) { - if ((r->method_number == M_OPTIONS) && r->uri && (r->uri[0] == '*')) { + if ((r->method_number == M_OPTIONS) && r->uri && (r->uri[0] == '*') && + (r->uri[1] == '\0')) { return DONE; /* Send HTTP pong, without Allow header */ } return DECLINED;