1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-05 05:30:39 +03:00
Commit Graph

42 Commits

Author SHA1 Message Date
Stefan Fritsch
92e366007c Add lots of unique tags to error log messages
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 23:02:04 +00:00
Guenter Knauf
8def8313ec Invert logic for env var utf-8 fixing.
Now we exclude a list of vars which we know for sure they
dont hold utf-8 chars; all other vars will be fixed. This
has the benefit that now also all vars from 3rd-party
modules will be fixed.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1146932 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 00:28:39 +00:00
Guenter Knauf
6b72d583d1 Fixed some more env vars which make problems.
This fix is based on BZ 13029 / 34985, and includes
now the SSL_ and GEOIP_ vars; otherwise its impossible
to run CGIs when mod_ssl and/or mod_geoip are loaded
and those mods return UTF-8 chars in any var during a
request.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1145647 13f79535-47bb-0310-9956-ffa450edef68
2011-07-12 16:13:28 +00:00
Guenter Knauf
8753d7e167 Added shebang check so that .vbs scripts can work as CGI.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1054347 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 04:33:28 +00:00
Guenter Knauf
dbf4a86e3d Fixed some win32 types.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040220 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 18:33:28 +00:00
Stefan Fritsch
ebb62867fb Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
William A. Rowe Jr
53dd6cf3a2 eliminating 9x legacy code from mod_win32
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731971 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 15:22:38 +00:00
Roy T. Fielding
de659cbed0 update license header text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:33:53 +00:00
Colm MacCarthaigh
dd95d7c37c Update the copyright year in all .c, .h and .xml files
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +00:00
Jim Jagielski
5061d9fa92 No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332306 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:11:44 +00:00
William A. Rowe Jr
8dfeff7595 Ignore both PATH_INFO as well as PATH_TRANSLATED to avoid hiccups
from additional path information passed in non-utf-8 format.

Submitted by: Richard Donkin <rd9 donkin.org>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151464 13f79535-47bb-0310-9956-ffa450edef68
2005-02-05 01:41:52 +00:00
Justin Erenkrantz
905cdf9f0b Update copyright year to 2005 and standardize on current copyright owner line.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 20:28:49 +00:00
William A. Rowe Jr
459b02f136 Handle PATH_INFO as opaque byte-wise data for cgi invocation as
handled for other variables with bug 9223.

PR: 32730
Submitted by: Richard Donkin <rd9 donkin.org>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124556 13f79535-47bb-0310-9956-ffa450edef68
2005-01-07 18:29:13 +00:00
Allan K. Edwards
4abcf93fc2 WIN64: fix some windows specific 64bit warnings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105390 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 13:33:29 +00:00
André Malo
a688f06b19 fix name of The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102618 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:31:03 +00:00
André Malo
f45372eda7 fix copyright dates according to the first checkin
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102555 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 11:24:12 +00:00
André Malo
4f02cb1e18 apply Apache License, Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 22:58:42 +00:00
André Malo
fb07607180 update license to 2004.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
2004-01-01 13:26:26 +00:00
Jeff Trawick
aa21671e13 switch to APR 1.0 API (which is still in flux)
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
2003-09-03 19:27:12 +00:00
William A. Rowe Jr
3cd3fc9f32 Someone (I need to refer back) asked that we do the same skip for the
utf-8 win32 prefix when testing for shebang lines.  Here's just such
  a test with some bad sizeof(buffer) v.s. bytes read assumptions fixed,
  and the code made generally a little more legible.  Please review and
  comment to consider this patch for backporting to 2.0.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98775 13f79535-47bb-0310-9956-ffa450edef68
2003-02-23 22:37:35 +00:00
André Malo
742af25096 finished that boring job:
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
2003-02-03 17:53:28 +00:00
Bill Stoddard
7a939b3e69 Fix some Win32 compile breaks caused by Brian Pane's making apr_table_t
a full incomplete type.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95965 13f79535-47bb-0310-9956-ffa450edef68
2002-07-06 02:49:59 +00:00
William A. Rowe Jr
2d094adecf Replace gunk with ap_regkey calls.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95876 13f79535-47bb-0310-9956-ffa450edef68
2002-06-24 04:55:24 +00:00
William A. Rowe Jr
5f0df8fdcf The fix wasn't healthy for Win9x. Work around pre-Unicode flavors.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95868 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 09:52:55 +00:00
William A. Rowe Jr
4de557782a Fixes Win32 cgi 500 errors when QUERY_ARGS or other strings include
extended characters (non US-ASCII) in non-utf8 format.  This brings
  Win32 back into CGI/1.1 compliance, and leaves charset decoding up
  to the cgi application itself.

  Accomplished this by utf-8 encoding of plain octets for user and header
  data, so that the apr_proc_create() translates back to single unicode
  characters.  This won't necessarily translate into the correct octet
  depending on the codepage used by the cgi app.  That's the next task.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95865 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 07:56:41 +00:00
William A. Rowe Jr
57184bfb04 Fix serious brokenness... we abused prog_type rather than cmd_type on
Win32 when handling APR_PROGRAM_PATH and APR_SHELLCMD style invocations.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95679 13f79535-47bb-0310-9956-ffa450edef68
2002-06-15 00:36:05 +00:00
William A. Rowe Jr
f52be25ab6 Catch up with Brad's changes, this knocks off the CGI popup windows bug
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95538 13f79535-47bb-0310-9956-ffa450edef68
2002-06-06 00:22:45 +00:00
Jeff Trawick
bc0cf18899 stop using APLOG_NOERRNO in calls to ap_log_[pr]error()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95151 13f79535-47bb-0310-9956-ffa450edef68
2002-05-17 11:33:10 +00:00
William A. Rowe Jr
8d26799604 Respect the process_cgi argument
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94639 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 22:34:16 +00:00
William A. Rowe Jr
14bba29a4d If we have a registry command or a shebang line invocation, correct the
invocation type to APR_PROGRAM_PATH so we will both search the path, and
  accept undecorated names, e.g. "perl" should be acceptable for "perl.exe".


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94636 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 19:55:00 +00:00
William A. Rowe Jr
596ccf1b44 In order for Win32 to accept the shebang line of #!perl so we 1) search
the PATH and 2) resolve perl.exe for perl, we must add the progtype so
  we can override APR_PROGRAM with APR_PROGRAM_PATH.  This is the API change
  only for the cgi build command line option function.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94634 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 19:50:46 +00:00
William A. Rowe Jr
fe4ce8bde6 Flip the order. If the user specifies ScriptInterpreterSource,
either Registry or RegistryStrict, test the registry in preference
  over a shebang line.  This is how 1.3 behaved, and allows scripts
  with invalid shebang lines (straight from another box, for example)
  to run without modification.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94618 13f79535-47bb-0310-9956-ffa450edef68
2002-04-12 06:35:15 +00:00
Roy T. Fielding
845cbfd508 Update our copyright for this year.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
2002-03-13 20:48:07 +00:00
Bill Stoddard
eb229035d2 Win32: Fix bug that could cause CGI scripts with QUERY_STRINGS
to fail.

Gotta allocate enough space for that NULL string terminator :-)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92522 13f79535-47bb-0310-9956-ffa450edef68
2001-12-18 21:56:16 +00:00
Ryan Bloom
e674055ddb Fix the cmd command for mod_include. When we are processing
a cmd command, we do not want to use the r->filename to set
the command name.  The command comes from the SSI tag.  To do this,
I added a variable to the function that builds the command line
in mod_cgi.  This allows the include_cmd function to specify
the command line itself.

PR:	8772


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92150 13f79535-47bb-0310-9956-ffa450edef68
2001-11-24 00:17:01 +00:00
Ken Coar
27b2ce41dc Style-guide compliance changes only, no functional differences.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91619 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 15:57:59 +00:00
William A. Rowe Jr
e559cd2c2e Grab this pointer, before it goes NULL
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91618 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 06:37:25 +00:00
William A. Rowe Jr
f16b954906 For Win32 cgi %1 arguments, use backslashes. For $1, use posix slashes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91617 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 06:32:47 +00:00
William A. Rowe Jr
cbf8c19978 On second thought, we like our dot, alot.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91616 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 05:59:10 +00:00
William A. Rowe Jr
b2d2222423 Round out const'ness
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91615 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 04:18:15 +00:00
William A. Rowe Jr
04f4abf8c3 First Patch! [Well, my own typo.]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91614 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 04:17:42 +00:00
William A. Rowe Jr
0a9f874084 Reimplement Win32 registry-based and shebang-extended scripting.
Accepts arguments of $* and %* for 'positioned' cgi envvars, provided they
  stand alone (aren't part of another arg.)

  Accepts %1 $1 syntax, quoted or not, but makes no attempt at palacating
  older programs with short paths, just yet.

  About as stable and robust as my first rewrite of dir_walk, so watch out!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91613 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 04:14:24 +00:00