Commit 988699d4 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Assure that non-FancyIndexed listings properly shortcut dir entries,
  and display and href the trailing slash, as well.

PR: 8206


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90364 13f79535-47bb-0310-9956-ffa450edef68
parent 290ab770
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1269,6 +1269,9 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent,
    }

    p = (struct ent *) apr_pcalloc(r->pool, sizeof(struct ent));
    if (rr->finfo.filetype == APR_DIR)
        p->name = apr_pstrcat(r->pool, dirent->name, "/", NULL);
    else
        p->name = apr_pstrdup(r->pool, dirent->name);
    p->size = -1;
    p->icon = NULL;
@@ -1293,7 +1296,6 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent,
		if (!(p->alt = find_default_alt(d, "^^DIRECTORY^^")))
		    p->alt = "DIR";
	    }
	    p->name = apr_pstrcat(r->pool, dirent->name, "/", NULL);
	}
	else {
	    p->icon = find_icon(d, rr, 0);