]> granicus.if.org Git - apache/commitdiff
don't lose the const-ness of the string being searched
authorJeff Trawick <trawick@apache.org>
Thu, 6 Dec 2001 02:54:47 +0000 (02:54 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 6 Dec 2001 02:54:47 +0000 (02:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92353 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 88ab6077f1f800dc6085b46478fbeedc1ef0f1d0..374a02a9fb759a2a74c89d2fdb0376d4d61a39be 100644 (file)
@@ -2694,8 +2694,8 @@ static int default_handler(request_rec *r)
      * have a / in the middle, which probably captures the original
      * intent, but may cause problems at first - Ben 7th Jan 01
      */
-    if(strcmp(r->handler,"default-handler")
-       && !strchr(r->handler, '/'))
+    if (strcmp(r->handler, "default-handler")
+        && !ap_strchr_c(r->handler, '/'))
        return DECLINED;
 
     d = (core_dir_config *)ap_get_module_config(r->per_dir_config,