From 1cf03938716bbd71fbcc7a5785a9fc0dc4fda6fa Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 6 Dec 2001 02:54:47 +0000 Subject: [PATCH] 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 --- server/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.40.0