View | Details | Raw Unified | Return to bug 47682
Collapse All | Expand All

(-)modules/generators/mod_autoindex.c (-3 / +3 lines)
Lines 1726-1758 static void output_directories(struct en Link Here
1726
                ap_rvputs(r, "</td><td align=\"right\">",
1726
                ap_rvputs(r, "</td><td align=\"right\">",
1727
                          apr_strfsize(ar[x]->size, buf), NULL);
1727
                          apr_strfsize(ar[x]->size, buf), NULL);
1728
            }
1728
            }
1729
            if (!(autoindex_opts & SUPPRESS_DESC)) {
1729
            if (!(autoindex_opts & SUPPRESS_DESC)) {
1730
                if (ar[x]->desc) {
1730
                if (ar[x]->desc) {
1731
                    if (d->desc_adjust == K_ADJUST) {
1731
                    if (d->desc_adjust == K_ADJUST) {
1732
                        ap_rvputs(r, "</td><td>", ar[x]->desc, NULL);
1732
                        ap_rvputs(r, "</td><td>", ar[x]->desc, NULL);
1733
                    }
1733
                    }
1734
                    else {
1734
                    else {
1735
                        ap_rvputs(r, "</td><td>",
1735
                        ap_rvputs(r, "</td><td>",
1736
                                  terminate_description(d, ar[x]->desc,
1736
                                  terminate_description(d, ar[x]->desc,
1737
                                                        autoindex_opts,
1737
                                                        autoindex_opts,
1738
                                                        desc_width), NULL);
1738
                                                        desc_width), NULL);
1739
                    }
1739
                    }
1740
                }
1740
                }
1741
            }
1741
                else {
1742
            else {
1742
                    ap_rputs("</td><td>&nbsp;", r);
1743
                ap_rputs("</td><td>&nbsp;", r);
1743
                }
1744
            }
1744
            }
1745
            ap_rputs("</td></tr>\n", r);
1745
            ap_rputs("</td></tr>\n", r);
1746
        }
1746
        }
1747
        else if (autoindex_opts & FANCY_INDEXING) {
1747
        else if (autoindex_opts & FANCY_INDEXING) {
1748
            if (!(autoindex_opts & SUPPRESS_ICON)) {
1748
            if (!(autoindex_opts & SUPPRESS_ICON)) {
1749
                if (autoindex_opts & ICONS_ARE_LINKS) {
1749
                if (autoindex_opts & ICONS_ARE_LINKS) {
1750
                    ap_rvputs(r, "<a href=\"", anchor, "\">", NULL);
1750
                    ap_rvputs(r, "<a href=\"", anchor, "\">", NULL);
1751
                }
1751
                }
1752
                if ((ar[x]->icon) || d->default_icon) {
1752
                if ((ar[x]->icon) || d->default_icon) {
1753
                    ap_rvputs(r, "<img src=\"",
1753
                    ap_rvputs(r, "<img src=\"",
1754
                              ap_escape_html(scratch,
1754
                              ap_escape_html(scratch,
1755
                                             ar[x]->icon ? ar[x]->icon
1755
                                             ar[x]->icon ? ar[x]->icon
1756
                                                         : d->default_icon),
1756
                                                         : d->default_icon),
1757
                              "\" alt=\"[", (ar[x]->alt ? ar[x]->alt : "   "),
1757
                              "\" alt=\"[", (ar[x]->alt ? ar[x]->alt : "   "),
1758
                              "]\"", NULL);
1758
                              "]\"", NULL);

Return to bug 47682