]> granicus.if.org Git - apache/commitdiff
Ensure the URI is "*" and not something like "*foo"
authorJim Jagielski <jim@apache.org>
Tue, 2 Oct 2007 21:21:04 +0000 (21:21 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 2 Oct 2007 21:21:04 +0000 (21:21 +0000)
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

modules/http/http_core.c

index 94c55a6a7fbd4393e5fc9315d7aa79d8ba349b34..e1a2efd3e9b8a749bf1f85c72920c01b84d658a2 100644 (file)
@@ -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;