summaryrefslogtreecommitdiffstats
path: root/modules/generators/mod_autoindex.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Changes for deprecated apr_is_fnmatchWilliam A. Rowe Jr2002-07-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95976 13f79535-47bb-0310-9956-ffa450edef68
* if we autoindex, discard the request body and check for anyJeff Trawick2002-05-311-0/+6
| | | | | | | errors doing so git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95453 13f79535-47bb-0310-9956-ffa450edef68
* Renames:Cliff Woolley2002-05-181-1/+1
| | | | | | | | APR_XtOffset -> APR_OFFSET APR_XtOffsetOf -> APR_OFFSETOF git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95164 13f79535-47bb-0310-9956-ffa450edef68
* stop using APLOG_NOERRNO in calls to ap_log_[pr]error()Jeff Trawick2002-05-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95151 13f79535-47bb-0310-9956-ffa450edef68
* Fix HTML 3.2 validation error: &O is not a valid entity. Should be &OCliff Woolley2002-04-211-5/+9
| | | | | | | Reported by: validator.w3.org git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94740 13f79535-47bb-0310-9956-ffa450edef68
* Fix mod_autoindex output with SuppressRules turned on.Cliff Woolley2002-04-211-0/+3
| | | | | | | | PR: 8016 Submitted by: David Shane Holden <dpejesh@yahoo.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94739 13f79535-47bb-0310-9956-ffa450edef68
* Adapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.Sander Striker2002-04-131-2/+2
| | | | | | | Submitted by: Thom May <thom@planetarytramp.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94631 13f79535-47bb-0310-9956-ffa450edef68
* This is a HACK! The problem is that the fast_internal_redirect isRyan Bloom2002-04-051-1/+25
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94457 13f79535-47bb-0310-9956-ffa450edef68
* Commit 1 of 2 to:Bill Stoddard2002-03-201-2/+2
| | | | | | | | 1. rename ap_rset_content_type to ap_set_content_type 2. reverse the arguments on the call to aligh with ap_set_content_length git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94056 13f79535-47bb-0310-9956-ffa450edef68
* First commit to introduce accessor function to set r->content_type..Bill Stoddard2002-03-201-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94027 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
* apr-utils rename apr_ansi_time_to_apr_time andIan Holsman2002-03-061-2/+2
| | | | | | | | | | | | apr_exploded_time_t. PR: Obtained from: Submitted by: Thom May <thom@planetarytramp.net> Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93733 13f79535-47bb-0310-9956-ffa450edef68
* next_filter of NULL to any ap_sub_req_lookup*() fn implies the subreqWilliam A. Rowe Jr2002-03-011-2/+2
| | | | | | | | | will never be run - or we expect to pass the subreq to fast_redirect. The comming fix will break invalid ap_sub_req_lookups* expecting to run subrequests with the next_filter NULL semantic. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93663 13f79535-47bb-0310-9956-ffa450edef68
* That check is superfluous since we must have savename definedJustin Erenkrantz2002-02-071-4/+2
| | | | | | | (otherwise, we'd get APR_INCOMPLETE on apr_dir_read). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93330 13f79535-47bb-0310-9956-ffa450edef68
* Allow mod_autoindex to serve symlinks if permitted and optimize our statsJustin Erenkrantz2002-02-071-3/+28
| | | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93329 13f79535-47bb-0310-9956-ffa450edef68
* Vetoed by KenCliff Woolley2002-02-051-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93256 13f79535-47bb-0310-9956-ffa450edef68
* List files that would result in HTTP_UNAUTHORIZED in addition toCliff Woolley2002-02-051-1/+2
| | | | | | | | | | successes and redirections, since there's a chance the client will actually have the proper authorization to retrieve them. Reported by: Stas Bekman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93250 13f79535-47bb-0310-9956-ffa450edef68
* vetoing and backing out OtherBill's patch rev 1.91. This breaksGreg Ames2002-02-041-2/+2
| | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93232 13f79535-47bb-0310-9956-ffa450edef68
* Which PR? I can't count them all. Get QUERY_STRING and PATH_INFOWilliam A. Rowe Jr2002-01-271-1/+1
| | | | | | | | | working again. Also rounds out our fix to work around negotiated directories which Greg Ames fixed; this addition in request.c simply shortcuts all further processing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93045 13f79535-47bb-0310-9956-ffa450edef68
* This otherwise ineffectual patch allows modules to perform internalWilliam A. Rowe Jr2001-12-281-2/+2
| | | | | | | | redirects of dirs into other resources, while still treating such a resource as a dir, based on the original apr_dir_read results. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92638 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of identifiers called 'stat' so we don't conflict with the libcAaron Bannert2001-12-271-4/+4
| | | | | | | 'stat' symbol. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92625 13f79535-47bb-0310-9956-ffa450edef68
* Just style changes. Really just 's/\t/ /' since the tabstop alignmentAaron Bannert2001-12-271-775/+776
| | | | | | | was pretty good. Added a couple braces and spaces here and there. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92624 13f79535-47bb-0310-9956-ffa450edef68
* Style-guide fixes, no functional changes.Ken Coar2001-10-251-73/+128
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91660 13f79535-47bb-0310-9956-ffa450edef68
* Restrict by content type and encoding before we go and try to drag in someWilliam A. Rowe Jr2001-10-201-4/+23
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91609 13f79535-47bb-0310-9956-ffa450edef68
* Assure that non-FancyIndexed listings properly shortcut dir entries,William A. Rowe Jr2001-08-191-2/+4
| | | | | | | | | 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
* Update the Apache code to account for the XtOffset change in APR.Ryan Bloom2001-08-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90356 13f79535-47bb-0310-9956-ffa450edef68
* Fix a small bug that limited the description's width to the filename's width.William A. Rowe Jr2001-08-141-2/+2
| | | | | | | Submitted by: Mladen Turk <mladen.turk@mail.inet.hr> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90162 13f79535-47bb-0310-9956-ffa450edef68
* Fix the new method code. We need to cast 1 to an apr_int64_t or it willRyan Bloom2001-08-111-1/+1
| | | | | | | | | | be treated as a 32-bit integer, and it will wrap after being shifted 32 times. Submitted by: Cody Sherr <csherr@covalent.net> and Ryan Morgan <rmorgan@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90090 13f79535-47bb-0310-9956-ffa450edef68
* Thanks rbb, and the modproxy-dev autobuild report for pointing these out.William A. Rowe Jr2001-08-071-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89983 13f79535-47bb-0310-9956-ffa450edef68
* All mod_autoindex query parsing is now quietly quashed with theWilliam A. Rowe Jr2001-08-071-70/+163
| | | | | | | | | | | | | | | | | | 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89981 13f79535-47bb-0310-9956-ffa450edef68
* Formatted output changes only...William A. Rowe Jr2001-08-071-108/+335
| | | | | | | | | | | | | | | | | | | | | | | | | 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] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89979 13f79535-47bb-0310-9956-ffa450edef68
* remove a gcc warning, leave object code unchangedJeff Trawick2001-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89911 13f79535-47bb-0310-9956-ffa450edef68
* Save hundreds of cycles on every autoindex request by _not_ attemptingWilliam A. Rowe Jr2001-08-031-50/+73
| | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89909 13f79535-47bb-0310-9956-ffa450edef68
* That's enough for tonight ... gheesh. Allow 2xx + OK (0) results fromWilliam A. Rowe Jr2001-08-031-1/+1
| | | | | | | | the subrequest to go out to the client. This doesn't address (..) anomilies, which I will address in the a.m. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89901 13f79535-47bb-0310-9956-ffa450edef68
* Allow a slightly larger range of acceptable responses.William A. Rowe Jr2001-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89900 13f79535-47bb-0310-9956-ffa450edef68
* Fix some major brokenness. We were not validating that the autoindexWilliam A. Rowe Jr2001-08-031-23/+30
| | | | | | | | subrequest'ed file was valid, and did not check a subrequest at all if the user didn't use FancyIndexing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89899 13f79535-47bb-0310-9956-ffa450edef68
* Begone ancient beast. IndexOptions FancyIndexing is sufficiently lessWilliam A. Rowe Jr2001-08-031-22/+2
| | | | | | | confusing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89897 13f79535-47bb-0310-9956-ffa450edef68
* Throw back in the newline, just for source legibility.William A. Rowe Jr2001-07-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89770 13f79535-47bb-0310-9956-ffa450edef68
* Correct a subtle reflow problem (evident in Mozilla Gecko/20010505) thatWilliam A. Rowe Jr2001-07-291-5/+2
| | | | | | | | | <hr>'s within <pre> tags (entirely illegal in the first place :) are not adjusted on window resize. By moving the second <hr /> into the <pre> block, at least the two rules are consistent. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89769 13f79535-47bb-0310-9956-ffa450edef68
* Minor quibble, <li> can and should be a balanced tagWilliam A. Rowe Jr2001-07-281-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89754 13f79535-47bb-0310-9956-ffa450edef68
* More pedantic changes to create HTML 3.2/4.01 Transitional andWilliam A. Rowe Jr2001-07-281-41/+36
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89751 13f79535-47bb-0310-9956-ffa450edef68
* Reviewing my own commit logs ... dang did this look silly.William A. Rowe Jr2001-07-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89718 13f79535-47bb-0310-9956-ffa450edef68
* More signedness fixesWilliam A. Rowe Jr2001-07-251-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89715 13f79535-47bb-0310-9956-ffa450edef68
* Change over to apr_strfsize() for apr_off_t file size formatting.William A. Rowe Jr2001-07-251-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89713 13f79535-47bb-0310-9956-ffa450edef68
* Changes to respect the new apr bucket and brigade length types (eitherWilliam A. Rowe Jr2001-07-241-1/+1
| | | | | | | apr_size_t for bucket lengths, or apr_off_t for aggregate brigade lengths.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89683 13f79535-47bb-0310-9956-ffa450edef68
* s/cont/pool/David Reid2001-07-071-7/+7
| | | | | | | Bring this back in line with changes to APR. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89511 13f79535-47bb-0310-9956-ffa450edef68
* Employ the new ap_sub_req_lookup_dirent() function for mod_autoindex.William A. Rowe Jr2001-06-271-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89448 13f79535-47bb-0310-9956-ffa450edef68
* Goodbye ap_send_http_headerWilliam A. Rowe Jr2001-02-281-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88390 13f79535-47bb-0310-9956-ffa450edef68
* Begin to move functions from the http module to the core. The goal is toRyan Bloom2001-02-261-0/+1
| | | | | | | have only functions that are HTTP specific in the http directory. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88341 13f79535-47bb-0310-9956-ffa450edef68
* *) fix inline handling. we had: apr_inline, APR_INLINE, USE_GNU_INLINE, andGreg Stein2001-02-241-1/+1
| | | | | | | | | | | | | 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] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88298 13f79535-47bb-0310-9956-ffa450edef68