]> andersk Git - mod-vhost-ldap.git/commitdiff
allow /~user with no trailing slash to work
authorGeoffrey Thomas <geofft@mit.edu>
Mon, 15 Oct 2007 11:34:39 +0000 (11:34 +0000)
committerGeoffrey Thomas <geofft@mit.edu>
Mon, 15 Oct 2007 11:34:39 +0000 (11:34 +0000)
git-svn-id: svn://scripts.mit.edu/server/common/oursrc/httpdmods@483 db9d59ff-b01e-0410-9b1a-cd9a8c06840f

mod_vhost_ldap.c

index 4f53b49d30b1f26d406242c899cddb7a49e618a4..cafb7a5069bbe7144fe65342cc08687f7a256398 100644 (file)
@@ -584,7 +584,8 @@ fallback:
            return DECLINED;
        }
        if (strncmp(r->uri + 2, username, strlen(username)) == 0 &&
-           r->uri[2 + strlen(username)] == '/') {
+           (r->uri[2 + strlen(username)] == '/' ||
+            r->uri[2 + strlen(username)] == '\0')) {
            char *homedir;
            if (apr_uid_homepath_get(&homedir, username, r->pool) != APR_SUCCESS) {
                ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r, 
This page took 0.061793 seconds and 5 git commands to generate.