Changeset 483


Ignore:
Timestamp:
Oct 15, 2007, 7:34:39 AM (15 years ago)
Author:
geofft
Message:
allow /~user with no trailing slash to work
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/httpdmods/mod_vhost_ldap.c

    r481 r483  
    585585        }
    586586        if (strncmp(r->uri + 2, username, strlen(username)) == 0 &&
    587             r->uri[2 + strlen(username)] == '/') {
     587            (r->uri[2 + strlen(username)] == '/' ||
     588             r->uri[2 + strlen(username)] == '\0')) {
    588589            char *homedir;
    589590            if (apr_uid_homepath_get(&homedir, username, r->pool) != APR_SUCCESS) {
Note: See TracChangeset for help on using the changeset viewer.