summaryrefslogtreecommitdiff
path: root/server/util_script.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
* veto and revert win64 patch: 64bit changes must percolate from theRoy T. Fielding2004-10-231-13/+12
| | | | | | | | | bottom (APR/system) up -- we can't give the client a 64bit API and then cast it to 32bits internally without introducing security holes on other platforms. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105572 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: API changes to clean up Windows 64bit compile warningsAllan K. Edwards2004-10-221-12/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105545 13f79535-47bb-0310-9956-ffa450edef68
* Remove deprecated APR_STATUS_IS_SUCCESS() macro in favor of direct test againstJustin Erenkrantz2004-08-011-1/+1
| | | | | | | APR_SUCCESS. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104439 13f79535-47bb-0310-9956-ffa450edef68
* * server/util_script.c (ap_scan_script_header_err_core): SetJoe Orton2004-06-161-0/+3
| | | | | | | | Content-Range in r->headers_out, so that the byterange filter knows to do nothing for a CGI script which produced a content-range. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103971 13f79535-47bb-0310-9956-ffa450edef68
* :set tabstop=8André Malo2004-05-111-234/+234
| | | | | | | | | :retab (no code changes) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103648 13f79535-47bb-0310-9956-ffa450edef68
* fix name of The Apache Software FoundationAndré Malo2004-02-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
* fix copyright dates according to the first check inAndré Malo2004-02-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102589 13f79535-47bb-0310-9956-ffa450edef68
* apply Apache License, Version 2.0André Malo2004-02-061-53/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
* update license to 2004.André Malo2004-01-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
* stop using apr_sockaddr_port_get() accessor function, as it willJeff Trawick2003-12-051-1/+1
| | | | | | | disappear from APR 1.0 API shortly git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101991 13f79535-47bb-0310-9956-ffa450edef68
* switch to APR 1.0 API (which is still in flux)Jeff Trawick2003-09-031-2/+2
| | | | | | | | because of the changes to the argument lists of apr_mmap_dup and apr_socket_create, 2.1-dev won't build with apr and apr-util's 0.9 branch anymore git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101154 13f79535-47bb-0310-9956-ffa450edef68
* Remember an authenticated user during internal redirects if theAndré Malo2003-07-141-0/+11
| | | | | | | | | | redirection target is not access protected and pass it to scripts using the REDIRECT_REMOTE_USER environment variable. PR: 10678, 11602. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100604 13f79535-47bb-0310-9956-ffa450edef68
* finished that boring job:André Malo2003-02-031-1/+1
| | | | | | | | | update license to 2003. Happy New Year! ;-)) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
* *) SECURITY: [CAN-2002-0840] HTML-escape the address produced byWilliam A. Rowe Jr2002-10-021-1/+2
| | | | | | | | | | | | | ap_server_signature() against this cross-site scripting vulnerability exposed by the directive 'UseCanonicalName Off'. Also HTML-escape the SERVER_NAME environment variable for CGI and SSI requests. It's safe to escape as only the '<', '>', and '&' characters are affected, which won't appear in a valid hostname. Reported by Matthew Murphy <mattmurphy@kc.rr.com>. [Brian Pane] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97064 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_ flavors of ischar()William A. Rowe Jr2002-06-231-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95859 13f79535-47bb-0310-9956-ffa450edef68
* stop using APLOG_NOERRNO in calls to ap_log_?error()Jeff Trawick2002-05-171-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95149 13f79535-47bb-0310-9956-ffa450edef68
* Added the APLOG_TOCLIENT flag to ap_log_rerror() toBill Stoddard2002-04-221-4/+6
| | | | | | | | | | | | | explicitly tell the server that warning messages should be sent to the client in addition to being recorded in the error log. Prior to this change, ap_log_rerror() always sent warning messages to the client. In one case, a faulty CGI script caused the server to send a warning message to the client that contained the full path to the CGI script. This could be considered a minor security exposure. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94744 13f79535-47bb-0310-9956-ffa450edef68
* Handle CR/LF terminated lines from CGI scripts.Brian Havard2002-03-311-1/+1
| | | | | | | Reviewed by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94346 13f79535-47bb-0310-9956-ffa450edef68
* Fix for a bug that I introduced when eliminating the single-byteBrian Pane2002-03-301-1/+1
| | | | | | | | | reads in mod_cgi: eof wasn't treated as an error condition when reading the script headers, so we were delivering a 200 when a CGI script produced no output. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94342 13f79535-47bb-0310-9956-ffa450edef68
* Changed mod_cgi to not do single-byte reads to consume theBrian Pane2002-03-231-0/+52
| | | | | | | script headers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94151 13f79535-47bb-0310-9956-ffa450edef68
* Commit 2 of 2 to:Bill Stoddard2002-03-201-1/+1
| | | | | | | | 1. rename ap_rset_content_type to ap_set_content_type 2. reverse the arguments to aligh with ap_set_content_length git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94057 13f79535-47bb-0310-9956-ffa450edef68
* Final commit to add ap_rset_content_type accessor. Add AddOutputFiltersbyTypeBill Stoddard2002-03-201-1/+1
| | | | | | | filters during call to ap_rset_content_type() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94028 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
* Optimization: changed some apr_pstrndup calls to apr_pstrmemdupBrian Pane2001-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92282 13f79535-47bb-0310-9956-ffa450edef68
* optimize ap_add_common_vars() for the common case where r->subprocess_env is ↵Brian Pane2001-11-241-2/+11
| | | | | | empty git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92152 13f79535-47bb-0310-9956-ffa450edef68
* minor performance fix for ap_add_common_vars(): replace printf with apr_itoa()Brian Pane2001-11-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92136 13f79535-47bb-0310-9956-ffa450edef68
* Begin to abstract out the underlying transport layer.Ryan Bloom2001-11-121-3/+1
| | | | | | | | | | | The first step is to remove the socket from the conn_rec, the server now lives in a context that is passed to the core's input and output filters. This forces us to be very careful when adding calls that use the socket directly, because the socket isn't available in most locations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91887 13f79535-47bb-0310-9956-ffa450edef68
* This patch changes the apr_table_elts macro so that it providesIan Holsman2001-11-111-4/+4
| | | | | | | | | | | | access to the internals of an apr_table_t via a const pointer instead of the current non-const pointer. Submitted by: Brian Pane <BPane@pacbell.net> Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91860 13f79535-47bb-0310-9956-ffa450edef68
* Improve http2env's performance by cutting the work it has toRyan Bloom2001-11-101-12/+20
| | | | | | | | | do. Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91835 13f79535-47bb-0310-9956-ffa450edef68
* PATHEXT is a critial Win32 cmd.exe variable that declares _which_ extensionsWilliam A. Rowe Jr2001-09-241-0/+3
| | | | | | | are given command-name status (such as .exe;.bat;.com;.cmd etc.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91132 13f79535-47bb-0310-9956-ffa450edef68
* This patch is insufficient (highlights an existing problem) for OS2 andWilliam A. Rowe Jr2001-09-101-5/+2
| | | | | | | | | Netware, especially, and any other platform with odd native requirements for the PATH_TRANSLATED variable (where it should look like a filesystem entity for non-unixish cgi's.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90976 13f79535-47bb-0310-9956-ffa450edef68
* Back out the 1.45 change to util_script.c. This change madeRyan Bloom2001-09-041-1/+29
| | | | | | | | | | | us set the environment variable REQUEST_URI to the redirected URI, instead of the originally requested URI. PR: 7580 Submitted by: Taketo Kabe <kabe@sra-tohoku.co.jp> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90886 13f79535-47bb-0310-9956-ffa450edef68
* Why two ifdef blocks? This is simpler to readWilliam A. Rowe Jr2001-08-231-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90588 13f79535-47bb-0310-9956-ffa450edef68
* Change over to apr_strfsize() for apr_off_t file size formatting.William A. Rowe Jr2001-07-251-24/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89713 13f79535-47bb-0310-9956-ffa450edef68
* Another of the long term issues cleared up. BeOS can now runDavid Reid2001-07-251-1/+7
| | | | | | | perl and other CGI's that rely on .so's for their operation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89697 13f79535-47bb-0310-9956-ffa450edef68
* use apr-util's apr_date_parse_http() instead of the to-be-removedJeff Trawick2001-06-061-2/+2
| | | | | | | | | | | | | ap_parseHTTPdate() (proxy needs to make similar changes) build changes forthcoming... Submitted by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89277 13f79535-47bb-0310-9956-ffa450edef68
* surprised -Wall does not complain, but ap_scan_script_header_err_core() ↵Doug MacEachern2001-05-081-0/+2
| | | | | | should explicitly return an int git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89058 13f79535-47bb-0310-9956-ffa450edef68
* tweak ap_get_remote_host() so that the caller can find out if she gotJeff Trawick2001-03-091-1/+1
| | | | | | | | | back an IP address mod_access needed to know this, but the old code didn't handle IPv6 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88484 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
* Clean up some of the includes:Greg Stein2001-02-101-13/+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
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-9/+9
| | | | | | | | | | | 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
* Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.Jeff Trawick2000-12-201-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87460 13f79535-47bb-0310-9956-ffa450edef68
* Force all Apache functions to be linked into the executable, whether theyRyan Bloom2000-12-191-2/+2
| | | | | | | | | | | are used or not. This uses the same mechanism that is used for APR and APR-util. This may not be the correct solution, but it works, and that is what I really care about. This also renames CHARSET_EBCDIC to AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes the exports script a bit easier. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87424 13f79535-47bb-0310-9956-ffa450edef68
* Allow modules to specify the first module for a sub-request. This allowsRyan Bloom2000-11-221-1/+2
| | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87065 13f79535-47bb-0310-9956-ffa450edef68
* updates to changed interfaces to apr_set_port(), apr_get_port(),Jeff Trawick2000-11-211-1/+3
| | | | | | | apr_set_ipaddr(), and apr_get_ipaddr() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87050 13f79535-47bb-0310-9956-ffa450edef68
* This adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_portDavid Reid2000-11-081-1/+1
| | | | | | | | | | functions to use it. This is onyl the start and I'll pause a while before I continue in case people really hate this. The patch can be backed out and all evidence will be removed, but I think this makes maintaining/developing the code easier in the long term. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86870 13f79535-47bb-0310-9956-ffa450edef68
* Start of moving to apr_port_t in the server code. This will probably the firstDavid Reid2000-11-081-1/+1
| | | | | | | of a few... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86866 13f79535-47bb-0310-9956-ffa450edef68
* We have functions that allow us to get the ports from the sockets, so use themDavid Reid2000-11-031-2/+3
| | | | | | | here. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86816 13f79535-47bb-0310-9956-ffa450edef68
* Remove original_uri. This is the same as r->unparsed_uriRyan Bloom2000-10-211-29/+1
| | | | | | | Reviewed by: Roy Fielding and Tony Finch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86688 13f79535-47bb-0310-9956-ffa450edef68