Log of /httpd/httpd/tags/2.3.1/modules/generators/mod_autoindex.c
Parent Directory
|
Revision Log
Revision
729314 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Dec 24 14:21:45 2008 UTC
(10 months, 4 weeks ago)
by
takashi
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 75902 byte(s)
Diff to
previous 689261
(
colored)
Make "HeaderName" and "ReadmeName" be stored in simple entries "header" and "readme" respectively.
Side effect:
In the case that multiple "HeaderName"s or multiple "ReadmeName"s exist in one directory section.
Before this change, the first directive is effective.
After this change, the last directive is effective.
Revision
168202 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed May 4 22:23:00 2005 UTC
(4 years, 6 months ago)
by
pquerna
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 74735 byte(s)
Diff to
previous 151408
(
colored)
Add AP_INIT_TAKE_ARGV. There can be some inconsistent results because of the behavoir of ap_getword_conf. Do not rely upon any last argument that is "". If the argument is in the middle of the line, it should work correctly.
This is updated from the version sent to dev@httpd to fix the behavoir with 0 arguments.
* include/http_config.h: minor MMN bump for the new interface.
* modules/generators/mod_autoindex.c: Migrate IndexOptions to the new ARGV command type.
Revision
98181 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 15:20:32 2003 UTC
(6 years, 10 months ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 74033 byte(s)
Diff to
previous 97590
(
colored)
Bring forward the IndexOptions IgnoreCase option to mod_autoindex
from Apache 1.3 for both 2.0 and 2.1 (since the patch/feature was
previously accepted for 1.3, I'm committing without the usual vote
specific to 2.0.) Only small modification of David's patch to avoid
future reformatting of the options list and better handle the strnatcmp
side effects.
PR: 14276
Obtained from:
Submitted by: David Shane Holden <dpejesh@yahoo.com>
Reviewed by:
Revision
94457 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 5 17:50:37 2002 UTC
(7 years, 7 months ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 72431 byte(s)
Diff to
previous 94056
(
colored)
This is a HACK! The problem is that the fast_internal_redirect is
removing the OLD_WRITE filter. Obviously that is wrong. For right now,
the fix is to hack around the problem and just make it work. Long term,
we need to find a real solution to this, but this gets autoindex working
today.
Revision
93329 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 7 06:37:09 2002 UTC
(7 years, 9 months ago)
by
jerenkrantz
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 71243 byte(s)
Diff to
previous 93256
(
colored)
Allow mod_autoindex to serve symlinks if permitted and optimize our stats
so that only one stat() is needed.
If we get APR_FINFO_MIN bits, lookup_dirent won't do a repeated stat()
call. So, let's do it here. Also, if we see a symlink, expand it.
(Technically, we don't *have* to expand the symlinks - the resolve_symlink
fix handles that, but we can't really assume that.) Since we know that
dirent will be rr->finfo anyway, go back to relying on dirent only for
APR_DIR checks.
Revision
93232 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Feb 4 21:19:08 2002 UTC
(7 years, 9 months ago)
by
gregames
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 70276 byte(s)
Diff to
previous 93045
(
colored)
vetoing and backing out OtherBill's patch rev 1.91. This breaks
mod_autoindex on systems such as Unix where apr_dir_read doesn't automatically
return the filetype. You see a '?' icon rather than a folder icon
for directories on 2.0.31 because mod_autoindex doesn't realize that the thing
is a directory.
No, we don't want more stat()s either.
Revision
91609 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sat Oct 20 18:54:54 2001 UTC
(8 years, 1 month ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 61714 byte(s)
Diff to
previous 90364
(
colored)
Restrict by content type and encoding before we go and try to drag in some
text to merge as headers and footers to autoindex pages. This will escape
index.gif from a bold attempt to use IndexHeader index ;)
Also pass in the args to the subrequest, for anyone trying to decode what
the user is looking at. A great example of this coming up.
Revision
89981 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 7 12:54:31 2001 UTC
(8 years, 3 months ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 61067 byte(s)
Diff to
previous 89979
(
colored)
All mod_autoindex query parsing is now quietly quashed with the
IndexOption IgnoreClient. The IndexOption SuppressColumnSorting
still drops the column sort <a href>'s for the column headers, but
IgnoreClient is required to ignore these Query options entirely.
Introduced new mod_autoindex query argument parsing for F=[0|1|2]
to allow the client to select plain, FancyIndexing or HTMLTable
formatting, V=[0|1] to inhibit or enable version sorting, and
P=pattern to return only specific files. The old Query Arguments
were reorganized as C=f for sorting column 'f' (same N, D, S, or M
as before), and O=A|D for ordering ascending or descending.
Docs and an Example are provided in mod_autoindex.html
Revision
89979 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 7 04:33:58 2001 UTC
(8 years, 3 months ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 56941 byte(s)
Diff to
previous 89911
(
colored)
Formatted output changes only...
Introduced new mod_autoindex IndexOptions flags; SuppressIcon to
drop the icon column and SuppressRules to drop the <hr> elements.
These are necessary for HTML 3.2 final formatting rules.
Introduced HTMLTable to create rudimentary HTML table listings
(implies FancyIndexing). Necessary for alternate charsets, since
the columns are borked by multibyte characters.
Re-Introduced the mod_autoindex IndexOptions flag TrackModified
from Apache 1.3.15. This is needed for two reasons, first, given
multiple machines within a server farm, ETags and Last-Modified
stamps won't correspond from machine to machine, and second, many
Unixes don't capture changes to the date or time stamp of existing
files, since these don't modify the dirent itself.
[Originally for 1.3 by me]
Re-Introduced the mod_autoindex InextOptions flag FoldersFirst
and DirectoryWidth options from Apache 1.3.10.
[Originally for 1.3 by Ken Coar]
Revision
89909 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 3 18:32:03 2001 UTC
(8 years, 3 months ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 48229 byte(s)
Diff to
previous 89901
(
colored)
Save hundreds of cycles on every autoindex request by _not_ attempting
to to test the parent (..) sub request! This patch also allows the user
to see things that will redirect them. That way, the lnk or dir within
the directory is displayed correctly.
Also allows an ALT text entry other than DIR by providing AddAlt
^^DIRECTORY^^, as the user (might) expect to be allowed to do.
Revision
89751 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 28 01:17:37 2001 UTC
(8 years, 3 months ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 47369 byte(s)
Diff to
previous 89718
(
colored)
More pedantic changes to create HTML 3.2/4.01 Transitional and
XHTML 1.0 Transitional - compliant output. Note that this model
is forever broken, since <hr> and <img> tags within a <pre> block
are, by definition, invalid. This is sort of mute since we need
to start creating a table-based autoindex, mostly for utf-8 names
that map in R-t-L order comixed with L-t-R formatting.
Revision
88298 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sat Feb 24 11:23:31 2001 UTC
(8 years, 8 months ago)
by
gstein
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 47144 byte(s)
Diff to
previous 88282
(
colored)
*) fix inline handling. we had: apr_inline, APR_INLINE, USE_GNU_INLINE, and
INLINE. Now, we just have APR_INLINE and APR_HAS_INLINE.
- convert all usage
- note that apr_general messed up the defn (compared to apr.h)
- simplify the inline decision logic in os/*/os.h
- simplify the code in os/*/os-inline.c
*) toss ap_checkconv() [no longer used]
Revision
87065 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Nov 22 19:38:07 2000 UTC
(9 years ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 47033 byte(s)
Diff to
previous 86915
(
colored)
Allow modules to specify the first module for a sub-request. This allows
modules to not have to muck with the output_filter after it creates the
sub-request. Without this change, modules that create a sub-request have
to manually edit the output_filters, and therefore skip the sub-request
output_filter. If they skip the sub-request output_filter, then we end
up sending multiple EOS buckets to the core_output_filter.
Revision
86803 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 2 20:01:52 2000 UTC
(9 years ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 47017 byte(s)
Diff to
previous 86740
(
colored)
Two patches (sorry), first to clean up the double assignment of the
r->content_type value on UNICODE_FS, and the second to add ETag and
Modified-Date to the file listing. If anyone sees an objection to
this thing, please scream (loudly) before I go and attack 1.3.x with
the ETag/Modified-Date Friday a.m.
Revision
86609 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 16 06:05:15 2000 UTC
(9 years, 1 month ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 46842 byte(s)
Diff to
previous 86449
(
colored)
Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
All _VAR_ flavors changes to _DATA to be absolutely clear.
Thank you Greg, for the most obvious suggestion.
Revision
85309 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sat May 27 05:28:02 2000 UTC
(9 years, 5 months ago)
by
wrowe
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 46104 byte(s)
Diff to
previous 85028
(
colored)
This patch corrects the issues from the AP_EXPORT and linkage
specification arguments to the ap_hooks.h declarations. As with
the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.
I will be happy to revert the inclusion of ap_config.h from
httpd.h if this bothers anyone. More individual modules need
to be patched if we do so.
The API_EXPORTs all moved into central storage in the ap_config.h
header. Without WIN32 or API_STATIC compile time declarations,
these macros remain no-ops.
This patch also moves the following data from http_main to http_config:
const char *ap_server_argv0;
const char *ap_server_root;
ap_array_header_t *ap_server_pre_read_config;
ap_array_header_t *ap_server_post_read_config;
ap_array_header_t *ap_server_config_defines;
And the following variables had already moved into ap_hooks.c:
ap_pool_t *g_pHookPool; (initialized now in http_config)
int g_bDebugHooks; (out of http_config)
const char *g_szCurrentHookName; (out of http_config)
The changes to http_main.c are in preparation for that module to
move out to a seperate .exe for win32. Other platforms will be
unaffected, outside of these changes.
Revision
84497 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 19 02:42:17 2000 UTC
(9 years, 10 months ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 45691 byte(s)
Diff to
previous 84492
(
colored)
Manoj has been pushing for this for a while, but I've been too dense
to understand that he was right. :-) Basically, this makes the modules
use ap_config to test for header file inclusion. This method is not to
be used for larger modules that run autoconf theirselves. Including
ap_config is only valid for modules which rely on Apache to do their
configuration. Currently, this is only the core modules.
Revision
84492 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Jan 18 23:41:56 2000 UTC
(9 years, 10 months ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 45640 byte(s)
Diff to
previous 84416
(
colored)
This is a huge change to the configure system. Basically, this name space
protects most, if not all, of the Apache macros. This has been tested on
Linux using all of the Unix MPM's. The biggest push was that Apache's
httpd.h header file can no longer include the ap_config.h file. Most of the
other files include this themselves now.
Submitted by: Ryan Bloom and Manoj Kasichainula
Revision
83927 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 4 16:38:16 1999 UTC
(10 years, 1 month ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 45440 byte(s)
Diff to
previous 83901
(
colored)
First patch to re-order function parameters. This one gets the low hanging
fruit, and moves most of the result parameters to the first argument.
Future patches in this series will move the rest of the result parameters
to the beginning of the list, and will move the context's to the end of the
list
Revision
83901 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 14 13:37:45 1999 UTC
(10 years, 2 months ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 45440 byte(s)
Diff to
previous 83879
(
colored)
A change to how APR uses user data. Now, user data is a linked list that
is retreivable using a char string. Basically, you provide a string that
will be used as a key when you store the data. If the key was used before,
we will overwrite the old data. When you want to retreive your data, pass
in the same key, and we will find the data you care about. This also makes
it harder to put user data in when creating a context, so that option has
disappeared. It is also impossible to inherit user data from parent contexts.
This option may be added in later. I will be documenting this VERY soon.
Revision
83879 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 8 14:15:55 1999 UTC
(10 years, 2 months ago)
by
rbb
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 45446 byte(s)
Diff to
previous 83852
(
colored)
Remove all of the calls to functions like "ap_popenf". These functions were
moved down to APR, but they are being removed. They are not portable, and
were only moved down for backwards compatability. With this change, they can
be safely removed, which is the next commit on it's way.
Submitted by: Ryan Bloom and Paul Reder
Revision
83786 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 26 17:09:12 1999 UTC
(10 years, 3 months ago)
by
fielding
Original Path:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
File length: 45140 byte(s)
Diff to
previous 83751
(
colored)
Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and
implement pre_connection as a hook. The intent is that these hooks will
be extended to allow Apache to be multi-protocol, and also to allow the
calling order to be specified on a per-hook/per-module basis. [Ben Laurie]
Port a bunch of modules to the new module structure.
["Michael H. Voase" <mvoase@midcoast.com.au>]
Submitted by: Ben Laurie
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.