You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Tao <ta...@io.org> on 1995/10/07 17:46:02 UTC

Setting UserDir to "disabled" doesn't work?

    In mod_userdir.c, in the function set_user_dir(), is the negated
string comparison correct?

char *set_user_dir (cmd_parms *cmd, void *dummy, char *arg)
{
    void *server_conf = cmd->server->module_config;

    if (!strcasecmp (arg, "disabled")) arg = NULL;

    set_module_config (server_conf, &userdir_module, pstrdup (cmd->pool, arg));
    return NULL;
}

    It would seem that if the UserDir argument was set to "disabled",
a NULL pointer would be passed to set_module_config (to disable tilde
expansion of home directories in URL's).
--
Brian Tao <ta...@io.org>
System Administrator, Internex Online Inc.
"Though this be madness, yet there is method in't"