From: Jeff Trawick Date: Thu, 6 Dec 2001 02:54:47 +0000 (+0000) Subject: don't lose the const-ness of the string being searched X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=814405ad4778844f2f64c95fc76f854a826e5c20;p=apache don't lose the const-ness of the string being searched git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92353 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 88ab6077f1..374a02a9fb 100644 --- a/server/core.c +++ b/server/core.c @@ -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,