]> andersk Git - mod-vhost-ldap.git/commitdiff
Return OK when we set r->filename, to fix cgi-bin URLs.
authorAnders Kaseorg <andersk@mit.edu>
Sat, 17 Jul 2010 22:26:16 +0000 (18:26 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Sat, 17 Jul 2010 22:26:16 +0000 (18:26 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
mod_vhost_ldap.c

index 3c5cde9f536fdb3be73c81c20e9c043cb834ea64..022dda1ffc3086785ff45e17ccce17a626a2e2e4 100644 (file)
@@ -452,6 +452,7 @@ static int mod_vhost_ldap_translate_name(request_rec *r)
     int sleep1 = 1;
     int sleep;
     struct berval hostnamebv, shostnamebv;
+    int ret = DECLINED;
 
     reqc =
        (mod_vhost_ldap_request_t *)apr_pcalloc(r->pool, sizeof(mod_vhost_ldap_request_t));
@@ -622,6 +623,7 @@ null:
          r->filename = cgi;
          r->handler = "cgi-script";
          apr_table_setn(r->notes, "alias-forced-type", r->handler);
+         ret = OK;
        }
     } else if (r->uri[0] == '/') {
         /* we don't set r->filename here, and let other modules do it
@@ -687,7 +689,7 @@ null:
     }
 
     /* Hack to allow post-processing by other modules (mod_rewrite, mod_alias) */
-    return DECLINED;
+    return ret;
 }
 
 #ifdef HAVE_UNIX_SUEXEC
This page took 0.048009 seconds and 5 git commands to generate.