af01b2
diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c
af01b2
index 506a046..29a39f8 100644
af01b2
--- a/modules/proxy/mod_proxy.c
af01b2
+++ b/modules/proxy/mod_proxy.c
af01b2
@@ -1442,7 +1442,7 @@ static char *de_socketfy(apr_pool_t *p, char *url)
af01b2
      * the UDS path... ignore it
af01b2
      */
af01b2
     if (!strncasecmp(url, "unix:", 5) &&
af01b2
-        ((ptr = ap_strchr(url, '|')) != NULL)) {
af01b2
+        ((ptr = ap_strchr_c(url + 5, '|')) != NULL)) {
af01b2
         /* move past the 'unix:...|' UDS path info */
af01b2
         char *ret, *c;
af01b2
 
af01b2
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
af01b2
index ca6cb87..3e21fa7 100644
af01b2
--- a/modules/proxy/proxy_util.c
af01b2
+++ b/modules/proxy/proxy_util.c
af01b2
@@ -2032,8 +2032,9 @@ PROXY_DECLARE(int) ap_proxy_pre_request(proxy_worker **worker,
af01b2
                  * check to see if r->filename starts with 'proxy:'
af01b2
                  */
af01b2
                 if (apr_table_get(r->notes, "rewrite-proxy") &&
af01b2
-                    (ptr2 = ap_strcasestr(r->filename, "unix:")) &&
af01b2
-                    (ptr = ap_strchr(ptr2, '|'))) {
af01b2
+                    !ap_cstr_casecmpn(r->filename + 6, "unix:", 5) &&
af01b2
+                    (ptr2 = r->filename + 6 + 5, ptr = ap_strchr(ptr2, '|'))) {
af01b2
+
af01b2
                     apr_uri_t urisock;
af01b2
                     apr_status_t rv;
af01b2
                     *ptr = '\0';