summaryrefslogtreecommitdiffstats
path: root/server/util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* here we go. add a directive that will keep %2f from beingKen Coar2003-01-231-0/+51
| | | | | | | | decoded into '/', allowing the *_walk to do their magic and return 404 if it's in the path, and allowing it in the path-info. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98479 13f79535-47bb-0310-9956-ffa450edef68
* 2.0 -> 2.1Wilfredo Sanchez2002-12-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97800 13f79535-47bb-0310-9956-ffa450edef68
* Use APR_STATUS_IS_EOF rather than a check against APR_EOFJustin Erenkrantz2002-11-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97378 13f79535-47bb-0310-9956-ffa450edef68
* Style police were called back from their vacationJustin Erenkrantz2002-11-011-471/+497
| | | | | | | *No functional changes* git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97377 13f79535-47bb-0310-9956-ffa450edef68
* A couple of observationsWilliam A. Rowe Jr2002-10-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97199 13f79535-47bb-0310-9956-ffa450edef68
* Security rollup for 2.0.40 release. Tag and roll baby.William A. Rowe Jr2002-08-091-8/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96327 13f79535-47bb-0310-9956-ffa450edef68
* Removed "tolower(++s)" idiom from ap_strcasestr(), to avoid side-effectsBrian Pane2002-06-231-1/+1
| | | | | | | | on any platform with a macro-based tolower() that references its argument multiple times. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95867 13f79535-47bb-0310-9956-ffa450edef68
* stop using APLOG_NOERRNO in calls to ap_log_?error()Jeff Trawick2002-05-171-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95149 13f79535-47bb-0310-9956-ffa450edef68
* Updated ap_getword_white() to use the same coding styleBrian Pane2002-04-291-17/+12
| | | | | | | (and optimizations) as ap_getword() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94854 13f79535-47bb-0310-9956-ffa450edef68
* Added a check to make sure that h_aliases is not NULL before we try toBradley Nicholes2002-04-261-6/+8
| | | | | | | | dereference it in the for(...) loop. Attempting to dereference a NULL pointer was causing a fault if there were no aliases found. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94819 13f79535-47bb-0310-9956-ffa450edef68
* Adapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.Sander Striker2002-04-131-1/+1
| | | | | | | 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
* One for 2.0.34 - to fix the problem of utf-8 configuration files savedWilliam A. Rowe Jr2002-04-051-0/+23
| | | | | | | | | | from MeSsed up editors that believe zero byte joiner lead bytes signify a utf-8 file. Someone point me at an RFC ... gheesh. FWIW; fixes bugs report 10125 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94446 13f79535-47bb-0310-9956-ffa450edef68
* Update callers of apr_explode_gmt to apr_time_exp_gmt. TheSander Striker2002-03-211-1/+1
| | | | | | | | | function was renamed in apr. Submitted by: Thom May <thom@planetarytramp.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94081 13f79535-47bb-0310-9956-ffa450edef68
* Correct our list of escape characters to include percent and theWilliam A. Rowe Jr2002-03-211-7/+10
| | | | | | | | | | carriage return on Win32/OS2, and modify the \r \n escaping to account for the fact that Win32/OS2 don't pass these characters through a true argv[] mechansim; replace them with a whitespace since they effectively are for most applications. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94070 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-1/+1
| | | | | | | | | | | | 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
* Whoops - this patch is required by the last request.c change.William A. Rowe Jr2002-01-271-1/+4
| | | | | | | | Fulfills Brian Pane's suggestion that we always overallocate by one to make /foo/bar quickly convertable to /foo/bar/ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93047 13f79535-47bb-0310-9956-ffa450edef68
* Optimization for ap_getparents: skip past all the leadingBrian Pane2001-12-031-4/+7
| | | | | | | | characters of the path that aren't '.' rather than copying those bytes onto themselves git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92292 13f79535-47bb-0310-9956-ffa450edef68
* Optimization: replace apr_pstrndup() with apr_pstrmemdup() inBrian Pane2001-12-021-1/+1
| | | | | | | ap_escape_html() to eliminate a redundant scan through the string. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92288 13f79535-47bb-0310-9956-ffa450edef68
* Reduced the number of strlen operations in ap_getword()Brian Pane2001-12-021-9/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92281 13f79535-47bb-0310-9956-ffa450edef68
* Modified ap_make_full_path to minimize the number of strlen operationsBrian Pane2001-12-021-10/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92280 13f79535-47bb-0310-9956-ffa450edef68
* Added NetWare to the Win32 ifdef listBradley Nicholes2001-09-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91028 13f79535-47bb-0310-9956-ffa450edef68
* Fix a seg fault in mod_include. When we are generating anRyan Bloom2001-09-061-1/+1
| | | | | | | | internal redirect, we must set r->uri to "", not a bogus string, and not NULL. [Ryan Bloom] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90929 13f79535-47bb-0310-9956-ffa450edef68
* Revert this patch. It indicates some fundamental brokenness with theWilliam A. Rowe Jr2001-08-241-7/+2
| | | | | | | | | apr_filepath_root() fn, which should simply return '/' for an absolute path on (most) unix, and advance the path pointer to the first non-'/' character [if only Win32 and others were so simple ;-] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90605 13f79535-47bb-0310-9956-ffa450edef68
* I don't know if this is the Right Way, but it certainly does make thingsCliff Woolley2001-08-241-2/+7
| | | | | | | | | | | work better right now. httpd-test is much much happier with this patch (ie, we can serve pages again :) I'm still seeing issues with mod_include, but that's probably a different problem... will investigate. Submitted by: Doug MacEachern git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90603 13f79535-47bb-0310-9956-ffa450edef68
* I'm still not 100% certain on this test. Regardless, it doesn't impactWilliam A. Rowe Jr2001-08-241-1/+2
| | | | | | | Unix, and this was the bug that Jeff's (none the less correct) fix masked. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90601 13f79535-47bb-0310-9956-ffa450edef68
* Eliminated ap_os_[systemcase|[case_]canonical]_filename() andWilliam A. Rowe Jr2001-08-231-0/+15
| | | | | | | move ap_os_is_path_absolute() into util.c (now relies on apr.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90567 13f79535-47bb-0310-9956-ffa450edef68
* It doesn't get any simpler than thisWilliam A. Rowe Jr2001-08-231-10/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90547 13f79535-47bb-0310-9956-ffa450edef68
* The original answer was evil, return NULL if the file name has no path!William A. Rowe Jr2001-07-231-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89666 13f79535-47bb-0310-9956-ffa450edef68
* Reconsidered the wisdom of this change... back to the drawing board.William A. Rowe Jr2001-02-251-2/+10
| | | | | | | The ap_ prefix is still good, IMHO git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88313 13f79535-47bb-0310-9956-ffa450edef68
* Clean up namespace badness with s/configfile_t/ap_configfile_t/William A. Rowe Jr2001-02-251-19/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88312 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
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
* write these in terms of strchr and strrchr so the compiler can possibly useGreg Stein2001-02-121-12/+8
| | | | | | | | builtin, optimized functions. [ they're stupid functions, but what the hell ] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88101 13f79535-47bb-0310-9956-ffa450edef68
* Fix a potential segfault on all platforms. David Reid fixed this forRyan Bloom2001-02-111-5/+1
| | | | | | | | | | BEOS, but this could actually happen on any platform, so we should be safe and protect ourselves. Submitted by: Cliff Woolley <cliffwoolley@yahoo.com> Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88080 13f79535-47bb-0310-9956-ffa450edef68
* Clean up some of the includes:Greg Stein2001-02-101-21/+11
| | | | | | | | | | - explicitly include apr_lib.h since ap_config.h doesn't - use apr_want.h where possible - use APR_HAVE_ where possible - remove some unneeded includes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88060 13f79535-47bb-0310-9956-ffa450edef68
* Fix more breakage on BeOS...David Reid2001-02-101-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88044 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-12/+12
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
* Get the correct IP address if ServerName isn't set and we can'tTony Finch2001-02-011-1/+1
| | | | | | | | | find a fully-qualified domain name at startup. PR: 7170 Submitted by: Danek Duvall <dduvall@eng.sun.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87938 13f79535-47bb-0310-9956-ffa450edef68
* Use the appropriate APR_FINFO_flags for the apr_stat/lstat/getfileinfoWilliam A. Rowe Jr2001-01-271-3/+3
| | | | | | | | calls to avoid ownership and permissions on Win32 when they are not required, and until they are implemented. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87873 13f79535-47bb-0310-9956-ffa450edef68
* BeOS BONE shouldn't be using this BeOS R5 check, so alter the check to make itDavid Reid2001-01-271-1/+1
| | | | | | | work correctly. Shouldn't this be APR'ized? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87872 13f79535-47bb-0310-9956-ffa450edef68
* The changes required for the APR_FINFO_wanted argument toWilliam A. Rowe Jr2001-01-201-3/+3
| | | | | | | | | | | apr_stat/lstat/getfileinfo. These are -NOT- optimal, they are simply the required changes to get the server working. The size of the patch is a warning about how we need to really look at what we are trying to accomplish with all of these stat/lstat calls. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
* Move initgroupgs, ap_uname2id and ap_gname2id from util.c toRyan Bloom2001-01-201-68/+0
| | | | | | | | | | | | mpm_common.c. These functions are only valid on some platforms, so they should not be in the main-line code. These functions are also not portable to non-unix platforms, so they don't really belong in APR. Since they are only used in MPMs, for right now, I am moving them to mpm_common.c git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87755 13f79535-47bb-0310-9956-ffa450edef68
* Remove ap_chdir_file. This function is not thread-safe, and nobodyRyan Bloom2001-01-201-19/+0
| | | | | | | | is currently using it. The proper way to do this, is to use the apr_create_process API. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87754 13f79535-47bb-0310-9956-ffa450edef68
* The big change. This is part 3 of the apr-util symbols rename, pleaseWilliam A. Rowe Jr2001-01-191-6/+6
| | | | | | | | see the first commit of srclib/apr-util/include (cvs apr-util/include) for the quick glance at symbols changed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87731 13f79535-47bb-0310-9956-ffa450edef68
* Fix a commentBill Stoddard2001-01-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87673 13f79535-47bb-0310-9956-ffa450edef68
* add pool parameter to ap_is_directory and ap_is_rdirectoryAllan K. Edwards2001-01-051-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87593 13f79535-47bb-0310-9956-ffa450edef68
* As we now use pools in the logging of the failure to get a hostname,David Reid2001-01-051-2/+2
| | | | | | | | | use ap_log_perror() as per Brians suggestion. Submitted by: Brian Havard <brianh@kheldar.apana.org.au> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87590 13f79535-47bb-0310-9956-ffa450edef68
* This stops a segfault on my machine where I haven't got a hostname forDavid Reid2001-01-041-2/+2
| | | | | | | the function to find. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87586 13f79535-47bb-0310-9956-ffa450edef68
* Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.Jeff Trawick2000-12-201-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87460 13f79535-47bb-0310-9956-ffa450edef68