You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/10/20 17:21:09 UTC

DO NOT REPLY [Bug 31802] New: - mod_autoindex - IndexOptions HTMLTable assigns wrong icon to Parent directory

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31802>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31802

mod_autoindex - IndexOptions HTMLTable assigns wrong icon to Parent directory

           Summary: mod_autoindex - IndexOptions HTMLTable assigns wrong
                    icon to Parent directory
           Product: Apache httpd-2.0
           Version: 2.0.52
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: mod_autoindex
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mig@vip.fi


Using "IndexOptions HTMLTable", wrong icon is assigned to Parent directory list 
item.

Here's a patch to fix this:
------------------------------------------------------------------------------
--- mod_autoindex.c.orig        2004-08-26 16:01:21.000000000 +0300
+++ mod_autoindex.c     2004-10-20 17:30:19.183962286 +0300
@@ -1228,7 +1228,7 @@
     p->key = apr_toupper(keyid);
     p->ascending = (apr_toupper(direction) == D_ASCENDING);
     p->version_sort = autoindex_opts & VERSION_SORT;
-    if (autoindex_opts & FANCY_INDEXING) {
+    if (autoindex_opts & (FANCY_INDEXING | TABLE_INDEXING)) {
         if (!(p->icon = find_default_icon(d, testpath))) {
             p->icon = find_default_icon(d, "^^DIRECTORY^^");
         }
------------------------------------------------------------------------------

Mig

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org