7a7d384263706f5893f8321126236f88588197c0 1648394 |
|
29-Dec-2014 |
covener |
Configuration files with long lines and continuation characters
are not read properly. PR 55910.
Submitted By: Manuel Mausz <manuel-as mausz.at>
Committed By: covener |
d7550aefd0524ab33c52ff4099fdc9a2e23bac53 1610674 |
|
15-Jul-2014 |
jorton |
SECURITY (CVE-2014-0117): Fix a crash in mod_proxy. In a reverse
proxy configuration, a remote attacker could send a carefully crafted
request which could crash a server process, resulting in denial of
service.
Thanks to Marek Kroemeke working with HP's Zero Day Initiative for
reporting this issue.
* server/util.c (ap_parse_token_list_strict): New function.
* modules/proxy/proxy_util.c (find_conn_headers): Use it here.
* modules/proxy/mod_proxy_http.c (ap_proxy_http_process_response):
Send a 400 for a malformed Connection header.
Submitted by: Edward Lu, breser, covener |
37ac81734dafa3f242b3edf6b5419cc71b790527 1610353 |
|
14-Jul-2014 |
jailletc36 |
Remove some 'register' in variable declaration.
Save a few cycles by calling 'apr_isalnum' instead of 'apr_isalpha' and 'apr_isdigit'. |
270cd5fa1853d1e54d0e46e8b3f7c84af76cc674 1589599 |
|
24-Apr-2014 |
jailletc36 |
Follow up to r1384924 .
Update comment and allocate one extra byte to be safe, even if not needed in the particular case described in r1384924. |
f5de27860e33ab8ce0769cbf1f7433f07af6ff30 1563381 |
|
01-Feb-2014 |
jailletc36 |
s/apr_pstrndup/apr_pstrmemdup/ when applicable |
1b032894abc0fcb993cbb8a02e7cfe62cd2f9cd4 1563379 |
|
01-Feb-2014 |
jailletc36 |
Use %pm in order to save 8k of stack in 'ap_pcfg_strerror' |
6db59fc571055b368602902eb1c32f2466e6675a 1485409 |
|
22-May-2013 |
jailletc36 |
Be more clever when allocating memory for log item to be escaped.
This should be faster and save about 70-100 bytes in the request pool with the default config. |
93eca7c42de074f3848ee3f0b2108f66d691058d 1485379 |
|
22-May-2013 |
jailletc36 |
Revert change in order to apply a better solution. |
a511a29faf2ff7ead3b67680154a624effb31aaf 1482522 |
|
14-May-2013 |
minfrin |
core: Stop the HTTP_IN filter from attempting to write error buckets
to the output filters, which is bogus in the proxy case. Create a
clean mapping from APR codes to HTTP status codes, and use it where
needed. |
decb536ebd4b7b94c7450c2e1daa491943135abd 1479528 |
|
06-May-2013 |
minfrin |
core: Add the ability to do explicit matching on weak and strong ETags
as per RFC2616 Section 13.3.3. |
2d59550f8dc87480fbfd7e77c0fec3cf91265c83 1468089 |
|
15-Apr-2013 |
jailletc36 |
Turn a int into a apr_size_t for a variabe used to compute a string length |
8deb548cf740c6d3d74ff46cab587a275027e86b 1467792 |
|
14-Apr-2013 |
druggeri |
Part two of r1467523 |
ac89249d825f005fd73abbcba644da3a385e1a3a 1467523 |
|
13-Apr-2013 |
druggeri |
Static var not neccessary here |
7eccbca0b823170469bfcf412e9bd6b510ad2fea 1461869 |
|
27-Mar-2013 |
jailletc36 |
Be more clever when allocating memory for log item to be escaped.
This should save about 70-100 bytes in the request pool with the default config. |
75b4c883b2ef72e0104b8b206f3408dbd1d36768 1452128 |
|
03-Mar-2013 |
jailletc36 |
Remove useless tests.
Turn
if (*x && apr_isspace(*x))
into
if (apr_isspace(*x)) |
469dfd9aa559375a382be3d85460de5021c4ad95 1442759 |
|
05-Feb-2013 |
jailletc36 |
Can't figure out why we allocate len+2 bytes here. Len+1 should be enough. |
02881698c37253936bb9ed43a36a457f3d305115 1433478 |
|
15-Jan-2013 |
druggeri |
Add helper function to execute command w args and get one line of output. Allow AuthLDAPBindPassword to have exec: argument like SSLPassPhraseDialog |
eafcc0ebf263d0ba69855b6e10958c4c1a2361bd 1427548 |
|
01-Jan-2013 |
sf |
Add some caching for password hash validation.
Password hash functions must be expensive in order to be secure. But
if they have to be re-evaluated for every request, performance
suffers.
As a minimal remedy, cache the most recent result for every
connection. This gives a great performance boost if a web browser
does many requests on the same connection with the same
user+password. In principle, this may keep the plain text password
around longer than before. But in practice, there won't be much
difference since user+password can already remain in some unused
data bucket for longer than the request duration.
A proper solution still needs to be found for connections from
proxies which may carry requests for many different users.
While it currently only requires the conn_rec, the new
ap_password_validate() function takes username and request_rec to
allow future extensions, like detection of brute-force attempts. |
4576c1a9ef54cd1e5555ee07d016a7f559f80338 1426877 |
|
30-Dec-2012 |
sf |
Add an option to enforce stricter HTTP conformance
This is a first stab, the checks will likely have to be revised.
For now, we check
* if the request line contains control characters
* if the request uri has fragment or username/password
* that the request method is standard or registered with RegisterHttpMethod
* that the request protocol is of the form HTTP/[1-9]+.[0-9]+,
or missing for 0.9
* if there is garbage in the request line after the protocol
* if any request header contains control characters
* if any request header has an empty name
* for the host name in the URL or Host header:
- if an IPv4 dotted decimal address: Reject octal or hex values, require
exactly four parts
- if a DNS host name: Reject non-alphanumeric characters besides '.' and
'-'. As a side effect, this rejects multiple Host headers.
* if any response header contains control characters
* if any response header has an empty name
* that the Location response header (if present) has a valid scheme and is
absolute
If we have a host name both from the URL and the Host header, we replace the
Host header with the value from the URL to enforce RFC conformance.
There is a log-only mode, but the loglevels of the logged messages need some
thought/work. Currently, the checks for incoming data log for 'core' and the
checks for outgoing data log for 'http'. Maybe we need a way to configure the
loglevels separately from the core/http loglevels. |
514d3c82db7bfd2795448c05131f61ef772bcbde 1422712 |
|
17-Dec-2012 |
sf |
remove unnecessary cast |
5b89dd41cdd1eb736fec0d120d68f71e9503caf6 1422549 |
|
16-Dec-2012 |
sf |
add new ap_bin2hex() utility function |
93539f32899ac52ab885aa4f4ef831fd86be3b77 1397716 |
|
12-Oct-2012 |
trawick |
follow-up to r1389481: find/use getloadavg() prototype on Solaris |
7c4c6ce700968efeba388ee80c282e7308030812 1397710 |
|
12-Oct-2012 |
trawick |
follow up to r1390564: we just need scope, not control structure |
784d6c0670369b9166239b046fec2a5bfa90a390 1393338 |
|
03-Oct-2012 |
jorton |
Extract some more data through the server load API:
* include/httpd.h (struct ap_sload_t): Add bytes_served, access_count
fields.
* server/util.c (ap_get_sload): Fill in those fields.
Submitted by: Jan Kaluza <jkaluza redhat.com> |
8a116e033795dd83754b68dfc970a524ea4a5779 1390564 |
|
26-Sep-2012 |
jim |
wrap var inits in the macro w/ a do-while. |
bd827b9715c5f4ac6b40581096997be0250fbf4b 1390562 |
|
26-Sep-2012 |
jim |
More accurate counts of busy and ready/idle |
83df3fbb3f37cf5337c8793b4559392a672e0696 1389564 |
|
24-Sep-2012 |
jim |
Break out loadavg from Apache load.... one is quick, the other
isn't so much, and so why load things up when wanting just
the server loadavg? |
55d39664d566ef2fe0c97dab0ec4d91416cf7541 1389506 |
|
24-Sep-2012 |
jim |
minor name change, but I expect most will just want/need/use
the current load average, so simplify the name |
89da6eb70c41422a20e5f871dbf5950140d128ab 1389481 |
|
24-Sep-2012 |
jim |
Would be nice to have some sort of canonical definition
of server loading for Apache. So create a struct that
holds some useful data. The hope is that for those
platforms that lack getloadavg(), people will write
replacements. |
73b12c457b484295047870af4d1ea2bbe0bb41e5 1372419 |
|
13-Aug-2012 |
humbedooh |
make the CT check in ap_parse_form_data case-insensitive |
c6595fa8588bead00e146497aec596bc651eb95f 1372349 |
|
13-Aug-2012 |
humbedooh |
Ditch the !, since that would result in the opposite of what was intended |
ef1a82b8ba86de2d7fd2706ae5c7197d8afda63e 1372305 |
|
13-Aug-2012 |
humbedooh |
core: use a cheaper way of matching the content-type when parsing form data |
a47a604a8bd3897c793e22c119150d085a7d2243 1372054 |
|
12-Aug-2012 |
humbedooh |
core:
Be less strict when checking whether Content-Type is set to "application/x-www-form-urlencoded"
when parsing POST data, or we risk losing data with an appended charset.
PR 53698
Reported by: Petter Berntsen < sluggr gmail.com > |
886d55e313c02587932104534df2e294058dd369 1359884 |
|
10-Jul-2012 |
sf |
make varbuf functions treat AP_VARBUF_UNKNOWN consistently, improve docs
ap_varbuf_pdup(): copying the whole buffer in case strlen ==
AP_VARBUF_UNKNOWN does not make sense as the caller can not set
the exact buffer size, only a minimum. No API change as previously
the behavior with AP_VARBUF_UNKNOWN was undocumented.
regsub_core(): Checking for vb->buf is useless, it cannot be NULL
unless ap_varbuf_init has not been called.
ap_varbuf_cfg_getline(): Initially, allocate enough memory to hold
an empty line. If strlen == AP_VARBUF_UNKNOWN, use strlen(buf) instead
of undefined behavior. |
50f8c80eb4d3989ebf3f1341aeef4d2d302af162 1343109 |
|
27-May-2012 |
sf |
Make ap_regcomp() return AP_REG_ESPACE if out of memory. Make ap_pregcomp()
abort if out of memory.
This raises the minimum PCRE requirement to version 6.0, released in 2005. |
f6aa801643860c751d90a0cb54f02dff8194d7e1 1307067 |
|
29-Mar-2012 |
sf |
Fix treatment of regex backreferences.
r904765 only made half of the necessary changes to remove the use
of '&' as an alias for '$0' and allow to escape any character with a
backslash. |
b02dfdb611f84136664b3c05e4d4d704aeabbf63 1228323 |
|
06-Jan-2012 |
wrowe |
Clean up size_t abuse, part 2. ap_malloc/calloc/realloc are explicitly
excluded from this cleanup as they must be signature identical to the
clib functions, and although the definition of size_t has been flakey,
the definition of those functions appears to be generally clean since
ANSI C. |
6f3d07d3152232d46eda8f3d97a511bcb1c82d3d 1213338 |
|
12-Dec-2011 |
sf |
Limit length of lines in .htaccess to 8K again, to reduce DoS potential.
Make ap_varbuf_cfg_getline() strictly enforce the max_len parameter. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
c60018e9cf43220afed53c8f50f42e71cec7e70e 1198940 |
|
07-Nov-2011 |
sf |
Fix integer overflow in ap_pregsub. This can be triggered e.g.
with mod_setenvif via a malicious .htaccess
CVE-2011-3607
http://www.halfdog.net/Security/2011/ApacheModSetEnvIfIntegerOverflow/ |
b2c24b10bd82a74466d40eccb262b5eeb7336df9 1198934 |
|
07-Nov-2011 |
sf |
No need to zero memory that we will overwrite anyway |
29f4cdf85e6a483cfb3ad9606fd2558ae958889b 1194912 |
|
29-Oct-2011 |
jim |
Remove magic numbers; ensure that an invalid nmatch is corrected
tagged |
81cc440ca73845f44dc589db106d3feb7a36f33b 1194870 |
|
29-Oct-2011 |
minfrin |
mod_include: Add support for application/x-www-form-urlencoded encoding
and decoding. |
0f7233952e2732c08e1848a0209ab207d4ada35a 1189985 |
|
27-Oct-2011 |
sf |
Improve handling of maxlen = APR_SIZE_MAX, noticed by Jim.
Use apr_pregsub_ex() and maxlen = 0 for unlimited in mod_substitute. |
cda2a8c4fe289419f62e8b9607cafe4812974840 1188950 |
|
26-Oct-2011 |
sf |
Limit ap_pregsub() to 64K, add ap_pregsub_ex() for longer strings and with
better error reporting. Modify ap_varbuf_regsub() to be similar to
ap_pregsub_ex(). |
fffcebffa1541a2617842282eaa22ea98940a570 1183007 |
|
13-Oct-2011 |
covener |
flip operator in comment for r1182887 and add some whitespace
to highlight the restriction on nmatch. |
a57397e54b559bc1802048df7370a96be51c57d6 1182887 |
|
13-Oct-2011 |
jim |
Force the honoring of AP_MAX_REG_MATCH |
c3f0abc5268d63f91e05f019cd42a78cc3b7d62f 1180334 |
|
08-Oct-2011 |
sf |
Shut up gcc/glibc warning about ignoring write()'s return value.
This may actually fix a real bug in case the error log is directed to a FIFO. |
b125ec755c78472e8e5313f16e7ccb50382083e9 1176018 |
|
26-Sep-2011 |
sf |
Some varbuf enhancements:
- Introduce new ap_varbuf_pdup() and ap_varbuf_regsub() functions.
- Fix some bugs in ap_varbuf_strmemcat().
- Make ap_varbuf.buf point to an empty string if no buffer has been allocated,
yet. |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
3a59bb90be3bc6246632384c3d885b875ae507d5 1172686 |
|
19-Sep-2011 |
sf |
Add wrappers for malloc, calloc, realloc that check for out of memory
situations. Use them in most places where malloc, and friends are used.
This results in clean error messages in an out of memory situation instead of
segfaulting or silently malfunctioning. In some places, it just allows to
remove some logging code.
PR 51568, PR 51569, PR 51571. |
5673ca38c5546ffdc8536dcac0b12dd9ad261e39 1172410 |
|
19-Sep-2011 |
covener |
Give a slightly more direct hint when no global ServerName is set. I still
think this buries the lead, but it's hard to rewrite to change the emphasis
yet maintain googleability. |
fa0316cc0d5c0e80d275877df428fd8061c0a79d 1157354 |
|
13-Aug-2011 |
sf |
Add ap_varbuf API for resizable buffers.
Increase length limit of lines in the configuration file to 16MB.
Increase length limit of lines in the group file to 16MB.
PR: 45888, 50824, 43084
Windows and Netware build changes are untested. |
3c290fd0361d6d9d84d97725eaf299456bddd6cf 1138627 |
|
22-Jun-2011 |
sf |
Various code cleanup
PR: 51398
Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr> |
2c3a18efdb0536acb42f25758b66bb85a67a9131 1138617 |
|
22-Jun-2011 |
sf |
We already have ap_str_tolower(), so also add ap_str_toupper() function and use
it where possible. |
7184de27ec1d62a83c41cdeac0953ca9fd661e8c 1132781 |
|
06-Jun-2011 |
sf |
Introduce ap_(get|set)_core_module_config() functions/macros and use them
everywhere.
We know that the core module has module_index 0. Therefore we can save
some pointer operations in ap_get_module_config(cv, &core_module) and
ap_set_module_config(cv, &core_module, val). As these are called rather often,
this may actually have some (small) measurable effect. |
8bd599bd5e87f9fbbbc1f7240e7b813fb6d286e5 1086756 |
|
29-Mar-2011 |
sf |
Change the ap_cfg_getline() and ap_cfg_getc() to return an error code.
Also:
- Make ap_cfg_getline() return APR_ENOSPC if a config line is too long.
- Add ap_pcfg_strerror() function to convert ap_cfg_getline's return value
into a nice message.
- Adjust definition of ap_configfile_t accordingly.
Not bumping MMN because it has already been bumped today. |
3770ed746d69c7a4111cba9966169bd5d7a509a6 1082196 |
|
16-Mar-2011 |
poirier |
core: AllowEncodedSlashes new option NoDecode to allow encoded slashes
in request URL path info but not decode them. Change behavior of option
"On" to decode the encoded slashes as 2.0 and 2.2 do. PR 35256,
PR 46830. |
29ecbd9db1622e74964264d078336f7604d65093 1072099 |
|
18-Feb-2011 |
jim |
Expose "new" ap_parse_form_data() function instead of requiring
mod_request for any module that may want to parse form data... |
8689050b83e255d70c85e89a9990afa6514a10eb 1061695 |
|
21-Jan-2011 |
sf |
Make ap_pstr2_alnum accept const char dest |
72177a0de8e9a557e7eb7c13dca5bdba15c27b8a 1061444 |
|
20-Jan-2011 |
sf |
Move ap_resolve_env to core.c, in preparation for adding mod_define-like
variable support. |
e123b6dd06aa4413bf86b6950f003c99466d3c18 1060996 |
|
19-Jan-2011 |
sf |
Fix compile error |
dac0f846350698d2a3e65c814daf82721bafc502 1060802 |
|
19-Jan-2011 |
jim |
Make it clear that '_' is a possible char and accepted |
b8055f3cb7e560830169cd1117a47b86abae41b4 1060657 |
|
19-Jan-2011 |
jim |
Make the balancer shared memory slot more human readable. But we need
to make it a "safe" filename, so create 2 funcs which do that. |
76a33192b55bef44bc6e6756a6b4e77d411127b9 1039204 |
|
25-Nov-2010 |
sf |
Fix some Windows build issues |
06068cd3f95d3953a2cad6dedf59097d18394d90 1032169 |
|
06-Nov-2010 |
sf |
Another ooops: properly return APR_SUCCESS |
f6e47621625cca111811e84e407be84b5b18e9c5 1032167 |
|
06-Nov-2010 |
sf |
Add a generic pool cleanup function that sets a pointer to NULL and use
it to replace various pool cleanup functions. |
d633ae407c3c956cb2d67ff27055ff0e640967ad 1025496 |
|
20-Oct-2010 |
fuankg |
Added header include for getpid() prototype on Win32. |
4f65267cf0f81c524084d39dab58f9d1c118b24b 991515 |
|
01-Sep-2010 |
trawick |
c isn't used after being set (Fortify) |
7c66a25db06001672e6ec5485b69bc7f3c342753 986699 |
|
18-Aug-2010 |
jim |
Pull out "does request have a body" logic to a central
canon function and use that for the 100-Continue OK
check.
Should likely also start using this in the various
other places we do this "have body" check thruout
the codebase... |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
b115299831a7b4bbec58a88d708d8536e1ecd50c 904765 |
|
30-Jan-2010 |
sf |
Make ap_pregsub(), used by AliasMatch and friends, use the same syntax
for regex backreferences as mod_rewrite and mod_include: Remove the use
of '&' as an alias for '$0' and allow to escape any character with a
backslash.
Document the use of $0.
PR: 48351 |
4a6d364e981d90ae6a8f7dfc1932e0e31dfc9726 820038 |
|
29-Sep-2009 |
poirier |
Spelling fix in comment. |
4a13940dc2990df0a798718d3a3f9cf1566c2217 807930 |
|
26-Aug-2009 |
bjh |
Bring back OS/2 support.
Reverses r758929 with a little bit of conflict resolution. |
1ca054782cb35b5f67686a41b1df75c269fa617b 758929 |
|
27-Mar-2009 |
trawick |
remove OS/2 platform support |
8c3667cd1d0db08647793137c0d1aa7f6526bebf 730296 |
|
31-Dec-2008 |
niq |
Add support for escaping all non-ascii chars to ap_escape_html, and use
it to fix PR#25202: encoding="entity" doesn't work as advertised in
mod_include.
For backport, this'll need an ABI-preserving version that'll be
a minor MMN bump. But if we do that in /trunk/, it'll never change. |
6eac5bfce4c68cf5f1d0615586090af2ae688bc1 726884 |
|
16-Dec-2008 |
takashi |
* Change some "apr_palloc / memcpy" to apr_pstrmemdup
PR: 39519
Submitted by: Christophe JAILLET <christophe.jaillet wanadoo.fr>
* Remove unnecessary casts |
9257af3c6aaeaf201fccb3e3c87cf8c41783fdb7 707022 |
|
22-Oct-2008 |
rpluem |
* Move ap_timeout_parameter_parse from mod_proxy.c to server/util.c and thus
make it part of the public API. |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
a5f529db7a87e3ac2e3c67b4ae009c1c094235d9 645120 |
|
05-Apr-2008 |
minfrin |
Rename the ap_escape_path_segment_b function as suggested by
Ruediger Pluem, and make a corresponding minor bump. |
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6f 644746 |
|
04-Apr-2008 |
minfrin |
mod_session: Add a generic session interface to unify the different
attempts at saving persistent sessions across requests. |
6befc8de2ed87a4fad0982bd32c19d4a2e8cd1b0 606776 |
|
25-Dec-2007 |
rpluem |
* Revert to old behaviour: Even if we detect a bad character: Formally decode
string correctly and do not mess up the string. Let the caller decide what
it wants to do with the result according to our return code. |
3a6e6569d93f803d04452ab31230fce578344134 578479 |
|
22-Sep-2007 |
niq |
Fix r578332 for backslashing filesystems, as noted by rpluem |
0fa95585979186f235303bd43ed5b18ec6b4bbbb 578332 |
|
22-Sep-2007 |
niq |
* Rationalise the two ap_unescape_url versions
* Fix ap_unescape_url_keep2f to work as documented (keep %2F encoded,
bringing it into line with the documentation as well as common sense).
* Introduce suggestion of an extension to the API
The most relevant open PR is 41798 |
7931542e897dc7876e8be858bebc2fb9606804b8 558133 |
|
20-Jul-2007 |
rpluem |
* We need to supply a (char *) to ap_str_tolower not a char. |
0696197a54f186a65abacba1037f6fbe0cb975a1 557837 |
|
20-Jul-2007 |
niq |
Multiple trivial fixes from Christophe JAILLET
PR 38699, 39518, 42005, 42006, 42007, 42008, 42009
The patches are all his, and are sufficiently trivial to review
at a glance. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
5ab929c06f40164e7277513b24f3597d92084845 357161 |
|
16-Dec-2005 |
jorton |
Bring forward the fix for CVE-2005-3352 already on the branches:
* modules/mappers/mod_imagemap.c (imap_url): Escape the referer.
* server/util.c (ap_escape_html): Escape the " character.
Submitted by: mjc
Reviewed by: fielding, jorton |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
3106dde0d7a2a5cf24aac2a7996fc2c033ef1836 292111 |
|
28-Sep-2005 |
jerenkrantz |
Clean up c2x code-path by not double-setting the prefix variable.
* server/util.c
(c2x): Take a new prefix parameter instead of hard-coding '%' and then
conditionally setting 'x' for half of the cases.
Reviewed by: nd |
783334f576bfb7ef44623faf7af44a65cf13b9b4 265506 |
|
31-Aug-2005 |
jim |
Add ap_append_pid(); This is performed enough to warrant
a function I think, especially with the fact that
the mapping of getpid() to APR_PID_T_FMT isn't
consistant in some areas. |
60e385aa992e11a6cb0504e8d4fc35186e8d848b 178209 |
|
24-May-2005 |
pquerna |
Fix trailing backslashes in configuration directives.
PR: 34834
Submitted by: Timo Viipuri <viipuri dlc.fi>
Reviewed by: Paul Querna |
690ff3c099cc869958d54672a20f43cbb6cb68b7 164092 |
|
21-Apr-2005 |
jim |
Ensure that we always return a FQDN... This is not guaranteed by either
apr_sockaddr_info_get() or apr_getnameinfo(). Also note that under
OS X, apr_getnameinfo() always seems to fail (at least on my
machines) so if we don't specific ServerName at the global setting,
we get a warning. |
f219dff9268bddb01e2d2ea37b2b2b23475085a4 162066 |
|
20-Apr-2005 |
jim |
APRized ap_get_local_host() |
ef5650b61a8e35f3cc93ec07e73efc17ea329894 153384 |
|
11-Feb-2005 |
jorton |
Move the POSIX reg* implementations into the ap_* namespace;
internalise the ap_reg*<->PCRE wrapper:
* configure.in: Add srclib/pcre to the include path.
* include/ap_regex.h: Renamed from include/pcreposix.h. Prefix all
constants with AP_; prefix all functions and types with ap_. Define
AP_DECLARE to nothing if necessary. Remove regcomp error codes.
* include/httpd.h: Include ap_regex.h not pcreposix.h.
(ap_pregcomp, ap_regexec, ap_regfree): s/regex_t/ap_regex_t/.
(ap_regexec, ap_regerror): Prototypes moved to ap_regex.h.
* server/util.c (regex_cleanup, ap_pregcomp, ap_pregsub, ap_pregfree):
Adjust for ap_ prefixed types. (ap_regexec, ap_regerror): Removed.
* server/Makefile.in: Build util_pcre.c.
* server/util_pcre.c: Copied from srclib/pcre/pcreposix.c; remove use
of PCRE-internals to do error mapping; rename types to add AP_/ap_
prefixes as above. Use APR includes. (ap_regerror): Use apr_snprintf.
* srclib/pcre/Makefile.in: Don't build pcreposix.c into libpcre.la.
* modules/*: Update to use new type and constant names.
PR: 27750 (part one)
Submitted by: Andres Salomon <dilinger voxel.net>, Joe Orton |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
aecb17a45c6d3ee4729ed5f68dc4270f211ee7a8 105572 |
|
24-Oct-2004 |
fielding |
veto and revert win64 patch: 64bit changes must percolate from the
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. |
666d616b7986a83bb0eac453694fbf4d6f05b98c 105545 |
|
22-Oct-2004 |
ake |
WIN64: API changes to clean up Windows 64bit compile warnings |
5e511f311cab2c4f035ad445aba704cd1434accc 105130 |
|
15-Sep-2004 |
jorton |
* server/util.c (ap_resolve_env): Rewrite to avoid buffer overflows.
Submitted by: Andr�� Malo
Reviewed by: jorton, mjc |
d57fe5abb266c2441d4aa437169c9df9e90d93cd 104937 |
|
02-Sep-2004 |
trawick |
handling of encoded non-slashes was borked in the
AllowEncodedSlashes path
thanks to FirstBill for pointing that out! |
3fc8708d86d584e80a933ed4eb0a6dbe9df58924 104925 |
|
01-Sep-2004 |
trawick |
Fix the handling of URIs containing %2F when AllowEncodedSlashes
is enabled. Previously, such urls would still be rejected with
404. |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
2af7ecf8c1589908aac793c154942d3cb3f6e492 102589 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
82acfa3f57607ae78326104c420a317260554a47 101873 |
|
24-Nov-2003 |
nd |
SECURITY [CAN-2003-0020]: escape arbitrary data before writing into the
errorlog.
Reviewed by: Mark J Cox |
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9 101154 |
|
03-Sep-2003 |
trawick |
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 |
a628ce010b25e287d1bb53b367083b0641f25b24 100826 |
|
28-Jul-2003 |
trawick |
axe a special check for EOF+data from apr_file_gets()... apr_file_gets()
doesn't return that combination of conditions any more |
da16a0866561311c1380f8bdd54ca614884e4cf2 100286 |
|
17-Jun-2003 |
gstein |
Following the previous commit, adjust the actual parameters of
ap_strcmp_match() and ap_strcasecmp_match() to use 'expected' rather
than 'exp' to avoid shadowing the global exp() function.
Submitted by: Justin Erenkrantz <justin@erenkrantz.com> |
8a0abaacd5dfc9c0b1e9cadecd6ce6bd321c8b6d 99133 |
|
31-Mar-2003 |
brianp |
Don't run regex cleanups before exec
Submitted by: Jeff Trawick
Reviewed by: Brian Pane |
3de8d8649277a02f53aa4f06121420985e8eee08 98912 |
|
07-Mar-2003 |
nd |
Minor MMN bump:
Forward port: Escape special characters (especially control
characters) in mod_log_config to make a clear distinction between
client-supplied strings (with special characters) and server-side
strings. This was already introduced in version 1.3.25.
Obtained from: Patch in 1.3.25-dev by Martin |
7267e0f6e2e831fb473cbf2c68d99319f02de98e 98625 |
|
12-Feb-2003 |
bnicholes |
Avoid passing too many characters to getenv. Make sure that only the
environment variable string is passed. |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
8419e6f8bff1a3617933f3ba760d2bdec7442f44 98479 |
|
23-Jan-2003 |
coar |
here we go. add a directive that will keep %2f from being
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. |
4e191199a0aeab09d78df8f5579e745572e8b7bc 97800 |
|
08-Dec-2002 |
wsanchez |
2.0 -> 2.1 |
2eeb3599c3902c5910e8958dfa527aed5320bf9b 97378 |
|
01-Nov-2002 |
jerenkrantz |
Use APR_STATUS_IS_EOF rather than a check against APR_EOF |
ed70c79ba60cffd5c863833fe8f84813bfccc084 97377 |
|
01-Nov-2002 |
jerenkrantz |
Style police were called back from their vacation
*No functional changes* |
8e7e9259dd17f04341e9d3febe556d0ea7790aa5 97199 |
|
14-Oct-2002 |
wrowe |
A couple of observations |
39dde7f4cd79d701cc14e5beac8ea528bc58d038 96327 |
|
09-Aug-2002 |
wrowe |
Security rollup for 2.0.40 release. Tag and roll baby. |
3e0494829cf6e8ac61e80fd82b1133111a52614c 95867 |
|
23-Jun-2002 |
brianp |
Removed "tolower(++s)" idiom from ap_strcasestr(), to avoid side-effects
on any platform with a macro-based tolower() that references its argument
multiple times. |
2d399cd7535887fceaa9f8f116eb98ce68ddd602 95149 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_?error() |
60c8764190086a6b20cb3d0dfa4c279e910fdf37 94854 |
|
29-Apr-2002 |
brianp |
Updated ap_getword_white() to use the same coding style
(and optimizations) as ap_getword() |
0c9cd1094f1a134f35145db3186eb50cf0c890c8 94819 |
|
26-Apr-2002 |
bnicholes |
Added a check to make sure that h_aliases is not NULL before we try to
dereference it in the for(...) loop. Attempting to dereference a NULL pointer
was causing a fault if there were no aliases found. |
35b9e4d5f3452cad4b3bec6829ce87a5ce9e9227 94631 |
|
13-Apr-2002 |
striker |
Adapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.
Submitted by: Thom May <thom@planetarytramp.net> |
07f199ee8c010493c7a84f1e97803e6fb98c7af0 94446 |
|
05-Apr-2002 |
wrowe |
One for 2.0.34 - to fix the problem of utf-8 configuration files saved
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 |
93ef028b3ac7dc86ec72204233b9d99c69587c54 94081 |
|
21-Mar-2002 |
striker |
Update callers of apr_explode_gmt to apr_time_exp_gmt. The
function was renamed in apr.
Submitted by: Thom May <thom@planetarytramp.net> |
8b9a4881f960811c0804bd11e13f7341be5bace8 94070 |
|
21-Mar-2002 |
wrowe |
Correct our list of escape characters to include percent and the
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. |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
01e8aca9299a0b872414c24c8b7724d6f88ae665 93733 |
|
06-Mar-2002 |
ianh |
apr-utils rename apr_ansi_time_to_apr_time and
apr_exploded_time_t.
PR:
Obtained from:
Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Ian Holsman |
c91377f431e14dc2b4aae95a313daa19872eedfb 93047 |
|
27-Jan-2002 |
wrowe |
Whoops - this patch is required by the last request.c change.
Fulfills Brian Pane's suggestion that we always overallocate by one
to make /foo/bar quickly convertable to /foo/bar/ |
6c666eee7231be90f84e69b72072656f482d6bb6 92292 |
|
03-Dec-2001 |
brianp |
Optimization for ap_getparents: skip past all the leading
characters of the path that aren't '.' rather than copying
those bytes onto themselves |
ba8a4aa8c61dc7e668b41e05740f433fc3b34142 92288 |
|
02-Dec-2001 |
brianp |
Optimization: replace apr_pstrndup() with apr_pstrmemdup() in
ap_escape_html() to eliminate a redundant scan through the string. |
445e8b3c10e5fee83e51ba7290c9e3dc8ab9bb7c 92281 |
|
02-Dec-2001 |
brianp |
Reduced the number of strlen operations in ap_getword() |
5dd8e5a39b7fd3e1c0d94b836480e84a9dc4d5fc 92280 |
|
02-Dec-2001 |
brianp |
Modified ap_make_full_path to minimize the number of strlen operations |
99af42d35acc473e76183000905e21af8ddaa21d 91028 |
|
15-Sep-2001 |
bnicholes |
Added NetWare to the Win32 ifdef list |
58097d7d8d1a394092374b9f6ddf76b7993724a4 90929 |
|
06-Sep-2001 |
rbb |
Fix a seg fault in mod_include. When we are generating an
internal redirect, we must set r->uri to "", not a bogus
string, and not NULL. [Ryan Bloom] |
be7f0e8fe132d574121d10ab9fe45f7c5116b2fa 90605 |
|
24-Aug-2001 |
wrowe |
Revert this patch. It indicates some fundamental brokenness with the
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 ;-] |
600845638c06dd6472e6213dd70ca4760f8bd9b8 90603 |
|
24-Aug-2001 |
jwoolley |
I don't know if this is the Right Way, but it certainly does make things
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 |
3aa1c623d1a3393aa17a6abb7dc0009ca4ec7f48 90601 |
|
24-Aug-2001 |
wrowe |
I'm still not 100% certain on this test. Regardless, it doesn't impact
Unix, and this was the bug that Jeff's (none the less correct) fix masked. |
3d72602d1d9e6f0d49d20f0d0a71831c160ef589 90567 |
|
23-Aug-2001 |
wrowe |
Eliminated ap_os_[systemcase|[case_]canonical]_filename() and
move ap_os_is_path_absolute() into util.c (now relies on apr.) |
fe3401b7506ac24b875a29302dccb9b82b9148e7 90547 |
|
23-Aug-2001 |
wrowe |
It doesn't get any simpler than this |
c27a00584afe0175241df4235eb366ead341ac7d 89666 |
|
23-Jul-2001 |
wrowe |
The original answer was evil, return NULL if the file name has no path! |
c3f224381c60ae6566ced33d46637edca7a71d56 88313 |
|
25-Feb-2001 |
wrowe |
Reconsidered the wisdom of this change... back to the drawing board.
The ap_ prefix is still good, IMHO |
196ed5483df1d70fed0864831df425f3403100e5 88312 |
|
25-Feb-2001 |
wrowe |
Clean up namespace badness with s/configfile_t/ap_configfile_t/ |
a7ed9c525f9460187f327cea953bf90ecf1bdc51 88298 |
|
24-Feb-2001 |
gstein |
*) 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] |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
a7ba30828b6e731d53fd165a83a2c9cfa9d8d4b8 88101 |
|
12-Feb-2001 |
gstein |
write these in terms of strchr and strrchr so the compiler can possibly use
builtin, optimized functions.
[ they're stupid functions, but what the hell ] |
8a76b3f3c93d39930182afa227d258218f80926b 88080 |
|
11-Feb-2001 |
rbb |
Fix a potential segfault on all platforms. David Reid fixed this for
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 |
1b21d7b3d97def358b2e923655edeb16613a1c31 88060 |
|
10-Feb-2001 |
gstein |
Clean up some of the includes:
- 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 |
4ce9e6094084396ccfe58c4412e2651b3fddbd81 88044 |
|
10-Feb-2001 |
dreid |
Fix more breakage on BeOS... |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
10a2de5cee9ae5abe675ea200fbe635a54556c8f 87938 |
|
01-Feb-2001 |
fanf |
Get the correct IP address if ServerName isn't set and we can't
find a fully-qualified domain name at startup.
PR: 7170
Submitted by: Danek Duvall <dduvall@eng.sun.com> |
b31025f6f2c0392dc76eecca7f27faad0b902be0 87873 |
|
27-Jan-2001 |
wrowe |
Use the appropriate APR_FINFO_flags for the apr_stat/lstat/getfileinfo
calls to avoid ownership and permissions on Win32 when they are not
required, and until they are implemented. |
116f55d22160d6536bcbba81a8716b2f8c13cccc 87872 |
|
27-Jan-2001 |
dreid |
BeOS BONE shouldn't be using this BeOS R5 check, so alter the check to make it
work correctly. Shouldn't this be APR'ized? |
6f984345bbfa9342dde1f2b7b8c35b7987d078af 87760 |
|
20-Jan-2001 |
wrowe |
The changes required for the APR_FINFO_wanted argument to
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. |
a1e0709c89175c34a3f72eb4a83d7ee1621a0884 87755 |
|
20-Jan-2001 |
rbb |
Move initgroupgs, ap_uname2id and ap_gname2id from util.c to
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 |
4b13b6bcdcfae61d3c58cc2569757651f28f2bbf 87754 |
|
20-Jan-2001 |
rbb |
Remove ap_chdir_file. This function is not thread-safe, and nobody
is currently using it. The proper way to do this, is to use the
apr_create_process API. |
b980ad7fdc218b4855cde9f75a747527f50c554d 87731 |
|
19-Jan-2001 |
wrowe |
The big change. This is part 3 of the apr-util symbols rename, please
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed. |
26006356de32ce48fffb10836f45b6091d6e6c66 87673 |
|
12-Jan-2001 |
stoddard |
Fix a comment |
47ab8dcf8ad581569376f2e04ef16bc785bb122a 87593 |
|
05-Jan-2001 |
ake |
add pool parameter to ap_is_directory and ap_is_rdirectory |
edb52c945e0ef60baa3474aaa2fd30270c447ef1 87590 |
|
05-Jan-2001 |
dreid |
As we now use pools in the logging of the failure to get a hostname,
use ap_log_perror() as per Brians suggestion.
Submitted by: Brian Havard <brianh@kheldar.apana.org.au> |
2cdcd756648f419e3531a1da5fed3c820124577b 87586 |
|
04-Jan-2001 |
dreid |
This stops a segfault on my machine where I haven't got a hostname for
the function to find. |
db3fa7db7c7910f2f23c3e3ffe0cf9f41a1899b9 87460 |
|
20-Dec-2000 |
trawick |
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro. |
886cd69ebf69e990dbc365be87ff8ea7cd681904 87424 |
|
19-Dec-2000 |
rbb |
Force all Apache functions to be linked into the executable, whether they
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. |
42df154a9b4c440ec42879d9e215be1b0468f47d 87354 |
|
15-Dec-2000 |
trawick |
Axe ap_get_virthost_addr(). This <address>[:port] parse routine
is not used anymore and it doesn't handle IPv6, so it is best to
drop it. If/when mod_tls (Netware) is ported to 2.0 it can use
apr_parse_addr_port(). |
d436d2bfb366f06840709480788c0878f37fb5b9 87211 |
|
05-Dec-2000 |
trawick |
Fix two spelling and syntax problems in ap_get_local_host(). |
cccd31fa4a72fe23cc3249c06db181b274a55a69 87080 |
|
26-Nov-2000 |
gstein |
*) Compensate for recent changes in the APR headers. Specifically, some
files need to specifically include stdio.h, or a particular apr_*.h
header.
*) Adjust callers of apr_create_process() to deal with the extra "const"
*) Add "const" to args of ap_os_create_privileged_process() |
1cd6db66efebdf2540a2975bae4173dc68569ff6 87012 |
|
18-Nov-2000 |
dreid |
Change references of AF_ to reflect APR_ so they should work
on all systems. |
377778e88ec07e35dd86413b968070e8a5eb6edd 86919 |
|
11-Nov-2000 |
rbb |
Not all platforms have INADDR_NONE defined by default. Apache used to
check for this and the define it if needed. Since APR also needs this
check it makes more sense for APR to just check and export a symobl that
is always available.
Submitted by: Branko �ibej <brane@xbc.nu>
Reviewed by: Ryan Bloom |
6d63a96a4960478e13676ecd286d901cfb2b6570 86906 |
|
10-Nov-2000 |
wrowe |
Killing ap_os_is_filename_valid. Left actual win32 code, since it is
moving into apr and the check_safe_file call. |
0f4674fb8635c15f52bf4f898198076b29c8f256 86905 |
|
10-Nov-2000 |
rbb |
This is always displayed to the console. There is no reason to print the
date and time to the console, so we should use APLOG_STARTUP to suppress
them |
dad234382d8424e1c5a30af2838e172aec9d6d1b 86866 |
|
08-Nov-2000 |
dreid |
Start of moving to apr_port_t in the server code. This will probably the first
of a few... |
71a78d54add85c128d472903444b8238ee9f1601 86717 |
|
23-Oct-2000 |
wrowe |
A more thorough example is appropriate. Also simplify the behavior and
always return root (/) if n < 1, which is no worse than returning elems
if n > elems.
PR:
Obtained from:
Submitted by:
Reviewed by: |
bdadc326446cae4a51bf75811fbe01a3a362df64 86668 |
|
19-Oct-2000 |
gstein |
somebody was a Very Bad Boy when they inserted casts into this function.
casting away the const was absolutely wrong... the warnings were saying the
return value type needed to be fixed. did that and torched the casts.
who still thinks casts are a good idea? :-) |
ada0c3f0ef85af9f8c37db5eeb6ebe596c6193e9 86643 |
|
18-Oct-2000 |
rbb |
The final line of the config file was not being read if there was
no \n at the end of it. This was caused by apr_fgets returning
APR_EOF even though we had read valid data. This is solved by
making cfg_getline check the buff that was returned from apr_fgets.
If apr_fgets return APR_EOF, but there was data in the buf, then we
return the buf, otherwise we return NULL. |
3d96ee83babeec32482c9082c9426340cee8c44d 86609 |
|
16-Oct-2000 |
wrowe |
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. |
447c6ce3ff08073c44f6785d5256271fcb877512 86579 |
|
13-Oct-2000 |
wrowe |
Completes the port of the <Directory /> handling for Win32... there is
still a patch needed for OS2 ... Brian? |
59ae852bea7d507f61999f982ded8219d2c0ec15 86571 |
|
12-Oct-2000 |
wrowe |
Modify ap_make_dirstr_prefix, platforms with HAVE_DRIVE_LETTERS or NETWARE
can request 0 elements, returning the '/' root.
[William Rowe, Tim Costello] from 1.3, with documentation |
f2d4511a5421f6710784b9724dc468821132c36e 86486 |
|
10-Oct-2000 |
rbb |
Remove some deprecated functions |
30c095035b1d5910cc239a1384c816aef228beb5 86409 |
|
06-Oct-2000 |
jim |
Port over the config directory stuff... |
c88c301651cc8b4cd2439ae51b42e02c4217bba5 86078 |
|
15-Aug-2000 |
dgaudet |
finish cleaning up after a change i made over 3 years ago. |
71ae70b321b6e872938934bbf569c5787962aca3 86020 |
|
07-Aug-2000 |
trawick |
A few more (last?) ap_xlate->apr_xlate changes covering stuff not completely
handled in the big apr rename last week. |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by: |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
a1de70bda57b72d8cc6b47ea744e0973ed424f56 85878 |
|
25-Jul-2000 |
wrowe |
Add APR_EOL_STR for a platform specific text delimiter, provided by
apr.h (defined in apr.h.in and apr.hw). This is needed -only- in APR
created files (true raw files) such as logs. It is not required in any
splat to screen (stderr/stdout) formatting, nor any html markup.
Some other modules slipped through in the prior apr_strings.h commit.
Sorry 'bout that.
PR:
Obtained from:
Submitted by:
Reviewed by: |
b6055b7832a0e4d0818416252fff5925aaebae4b 85867 |
|
21-Jul-2000 |
rbb |
Move all APR functions related to strings to their own directory, and
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories. |
9cb787a8a3d06704ab9c51ffd51525b364151182 85860 |
|
18-Jul-2000 |
trawick |
Fix some bad ap_log_error() invocations. Comment on a bad
ap_log_rerror() invocation.
Almost all of this is in code never compiled. |
935ccb257dad54c56fd10fe1ff3f797fa88fa1c4 85859 |
|
17-Jul-2000 |
trawick |
Grab OtherBill's latest 1.3 code to provide a default ServerName
and log the error.
Submitted by: "William A. Rowe, Jr." <wrowe@lnd.com> |
d41217398f0e1031adbb6f5bd37f45737c805def 85723 |
|
28-Jun-2000 |
trawick |
Include strings.h for strcasecmp(), strncasecmp(), and bzero().
Include time.h for time().
This removes a bunch of compiler warnings with gcc -Wall on AIX.
Submitted by: Jeff Trawick, Victor Orlikowski |
000b67449410515eac43e76ef6667915bfd4d2ab 85686 |
|
24-Jun-2000 |
gstein |
blast the old names for the status codes |
9c13ca4c536e8bb4a8366d1e7a980c8cca227ffd 85636 |
|
20-Jun-2000 |
wrowe |
Correct the problem where the only local host name that the IP stack
can discover are 'undotted' private names. If no fully qualified
domain name can be identified, the default ServerName will be set to
the machine's IP address string. |
66d349e02d1a5a599a01c977d2c5b0009181f7de 85599 |
|
17-Jun-2000 |
ben |
More consification, correct command initialisation. |
69af103b24175d37e977207062eeeff138d4854c 85598 |
|
17-Jun-2000 |
ben |
Constification. |
0e6e93183d91142d7cf9ffbf502114ff77bd9e19 85595 |
|
17-Jun-2000 |
ben |
Command handler revamp. Note that this makes the code produce a LOT of
warnings! |
dd8a1e9168c7efbca78925a64f32f11a9f3b69d2 85586 |
|
16-Jun-2000 |
trawick |
Turn on buffering for config file reads. This is dependent on ap_fgets()
doing the right thing.
Brian Havard implemented buffering for ap_fgets() on Win32 recently; OS/2 had
it already. This provides it for Unix.
changes to ap_read(), ap_getc(), ap_fgets() for Unix:
1) this fixes a problem in where ap_open() where a lock is created for
non-buffered files
2) this fixes problems setting rv correctly in the ap_read() buffered
path
3) since ap_read() works as expected, it is possible to make ap_getc()
and ap_fgets() even smaller
4) ap_fgets() no longer cares about '\r' |
fdeba8dafd227781a897c772905bb32197e92797 85567 |
|
13-Jun-2000 |
trawick |
Get the ap_config.h cleanup working on FreeBSD by adding includes of
additional system headers.
A platform check in logresolve.c to determine whether or not we include
<arpa/inet.h> was converted to a feature check. |
48d7c43629323c8d5ee9f7bd0d194de0a376b391 85558 |
|
13-Jun-2000 |
rbb |
Protect system header files with the appropriate macros. |
d4f1d9c1ff112a8ab9bee31f196973761329b236 85553 |
|
12-Jun-2000 |
rbb |
Clean up a big chunk of ap_config.h. This basically stops ap_config.h from
including any files. Because of this change, other files must include
their own headers. I also cleaned up a couple of other bugs in some
modules because I had to compile them all.
I expect this to break multiple platforms, but this will be fixed over time.
The massive configure cleanup is almost done. I will go through the files
one more time after this commit. |
6a07be8f4d69cf6936e340975cf8ec25c01774b9 85535 |
|
12-Jun-2000 |
rbb |
Remove the final vestiges of stat.h from Apache 2.0. All calls are now to
ap_stat. This also adds the new function ap_lstat(). This function is
analogous to lstat. |
dd155cc98289eb625eca9f37c43df16b084fa314 85488 |
|
10-Jun-2000 |
rbb |
Remove waitpid from the config checks and all calls to waitpid from the
server. |
8e3ba1dea7eb2bb7d604b738538828d29ac1496e 85487 |
|
09-Jun-2000 |
rbb |
Remove a bunch of string functions from Apache. These are basically
standard string functions like strstr, strcasecmp, etc that Apache used
to define for platforms that don't have them. These functions and the
feature tests have moved down to APR where they really belong. In doing
this, I am also able to remove a bunch of tests from the Apache configure
process. |
e4c4fcc82268e0192db234c74a6db784b879fffd 85486 |
|
09-Jun-2000 |
rbb |
Remove all occurances of strerror from Apache. ap_strerror works just
fine with standard errno values, and it is more portable. This also allows
me to remove the check for strerror from Apache's configure script. |
111e21f212e787a149337cc061ea53049556c1f1 85265 |
|
21-May-2000 |
manoj |
Remove all remaining instances in Apache code of
ap_{block,unblock}_alarms. |
e067e1ec8a2470fe55cf977446bfc170b80a28a1 85245 |
|
18-May-2000 |
trawick |
The following is a patch to fix Dirk's patch from March 14 so that
mod_rewrite will work without caveats. Basically Dirk was just
dropping patterns of the form ${x} if x didn't resolve to an
environment variable. That breaks mod_rewrite since mod_rewrite
uses the same syntax for some of its non-environment directives.
The patch below simply puts the behavior for unresolved values back
to what it was before Dirk's patch. If it is unresolved, it is just
left in the directive as is. Further processing will handle the value.
Dirk's optimization still holds if x is resolved. A small price is paid
if x is not resolved, but that shouldn't happen often.
(Note: some tweaks to the comments were negotiated offline after Paul
posted the patch to new-httpd.)
Submitted by: Paul Reder <rederpj@raleigh.ibm.com>
Reviewed by: Jeff Trawick |
fdcdd67d989f90122a9682a107a29f82e4bb3859 85237 |
|
17-May-2000 |
wrowe |
Cleanup ap_config.h fallout for Win32. Only a few very minor
changes to ap_config.h and util.c, but they might hurt someone...
please watch those two carefully. |
633b8e67325de6c77dd2cfc2a887551257740c0c 85221 |
|
16-May-2000 |
trawick |
APR-ize some EBCDIC logic which handles conversion between
characters and hex digits |
41cf07026ae1feea617fbb6b3293a11c710df24a 85176 |
|
10-May-2000 |
trawick |
Pick up various EBCDIC fixes from 1.3 (from Martin Kraemer and Oliver
Reh originally according to the change log). |
06924437019f9871bc4ee49748511130548b7d35 85153 |
|
06-May-2000 |
rbb |
Replace hsregex with PCRE. The PCRE library is always used in 2.0,
regardless of what system we are on. Currently, we are using the POSIX
wrappers that PCRE provides. |
db54f28d6a9a153242571f2ce9bf7e98bc2dca39 85097 |
|
29-Apr-2000 |
wrowe |
PR:
Obtained from:
Submitted by: William Rowe
Reviewed by:
Created ap_base64.h to extract those declarations for clarity from ap.h
CORE_PRIVATE, httpd.h do not belong in library functions, removed from ap.lib
Use apr headers for declarations in ap.lib stuff, kill AP_LONG from ap_sha1.h
Move credit to lib/apr/lib/ap_snprintf.c from ap.h for authorship |
9346b854b0827ae0645b456ffd2b4938f1e73c03 85024 |
|
24-Apr-2000 |
gstein |
clean up cmd_parms: config_file is no longer valid; end_token is bogus;
add directive.
move configfile_t and functions from httpd.h to http_config.h
new signature for ap_build_config() (since config_file removed from cmd_parms)
add "data" to ap_directive_t for future use by modules. add filename.
syntax checking for section-close directives: a section-open must exist,
the section-close must be </FOO>, and the open/close must match.
the file as a whole must be properly balanced (issue errors for each
unmatched section-open).
</FOO> command_rec structures are obsolete. Remove from http_core.c.
do not store </FOO> directives in the config tree.
clean out section-close logic from http_core.c (and old, related comments)
<Limit> and <LimitExcept> must walk their children.
new mechanism in ap_check_cmd_context() for testing enclosure in a
Directory/Location/File: find_parent()
<IfModule> and <IfDefine> must pass cmd->context when walking the children
several places: we had a walk followed by ap_get_module_config(). that
assumed the walk would create a config that we could fetch, which is not
true -- it is possible that the children are all from other modules
(e.g. the <Files> section in httpd.conf-dist has no "core" directives).
using ap_set_config_vectors() ensures we get a structure, and it returns
it to us.
[ note: when we had </Directory> (and friends) in the tree, the config
would get created; removing the directive removed the config; this
was a bitch to track down :-) ] |
974ccf89626a27bb288e08f2459a770be9c882d2 85022 |
|
24-Apr-2000 |
bjh |
Change strncasecmp() definition to match Bill's prototype. Fixes compile
break on OS/2. |
404e2e1f8ad30c2d996f5fb6b3a9a4a4a14a004b 84963 |
|
14-Apr-2000 |
rbb |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. |
7e9a996b274ba111995d85fa04ba416ef2e81b0d 84933 |
|
07-Apr-2000 |
rbb |
Make the server work without asking for buffered file I/O. This removes
all APR_BUFFERED flags from the server, and it fixes a minor bug in the
ungetchar patch (I forgot a file when comitting). |
7e79e8fd53348f9fc6e8009a4a2522425ab6f08f 84878 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
23923c878b8e2ade4ca9cb67d240fc744661a7a3 84765 |
|
14-Mar-2000 |
dirkx |
Another one in the department of fairly useless patches which
are best described as feature creep. Allows ${ENV} constructs
in the config file. This avoids the need for mod_perl or
m4 cleverness whilst mainting some of the usefullness. It
does not do (of course) multiline things or anything that clever.
Feel free to flame me.
PR:
Obtained from:
Submitted by:
Reviewed by: |
3a9bc6532fbe8439fc748d8ffedb87415904d16a 84751 |
|
13-Mar-2000 |
jim |
Backport the CSS security fixes to Apache 2.0a. Or is that forward
port? My sense of direction is all confused.
PR:
Obtained from:
Submitted by:
Reviewed by: |
64185f9824e42f21ca7b9ae6c004484215c031a7 84725 |
|
10-Mar-2000 |
rbb |
Fix all the License issues. Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license |
918570c76769cbfedd137f00544643b37b53e56b 84698 |
|
02-Mar-2000 |
dgaudet |
clean up a bunch of -Wall/etc warnings |
5f9993274cae4d5d566e02718170d430d1a19a71 84598 |
|
10-Feb-2000 |
dreid |
Small changes to remove some compiler complaints. |
2d71630471d1c23f0137309e3c3957c633ecbfd6 84531 |
|
28-Jan-2000 |
rbb |
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is
defined correctly in all C files. |
2e85973ef75f762a801d2db251047aee5913eaab 84520 |
|
26-Jan-2000 |
bjh |
OS/2 doesn't have groups, don't try to mess with them. |
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44c 84493 |
|
19-Jan-2000 |
rbb |
Finish the commits for the change in the header files. Basically, this hides
all of the Apache macros that modules don't need access to. This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by: Manoj Kasichainula and Ryan Bloom |
d9f2c22804bcbc9ad07d4ec18fbb8aa7c042dcd0 84416 |
|
10-Jan-2000 |
bjh |
Rework ap_finfo_t to split the file type out of the protection field.
I've taken a stab at the unix implementation but tested only on OS/2. |
6db54801798f6021bb464de7b3fdcc9dc3150f7b 84413 |
|
09-Jan-2000 |
dgaudet |
time overhaul:
- ap_time_t is a 64-bit scalar, microseconds since epoch
- ap_exploded_time_t corresponds to struct tm with a few extras
probably broken on anything except linux. |
d96aa158770d3f83cb59cf0f2f7402e175f7dfcc 84397 |
|
06-Jan-2000 |
rbb |
Separate the stat structure from the file structure and use ap_stat and
ap_getfileinfo in apache. |
9ede6357edc9aff1fb2f7edebefab473673298aa 84393 |
|
04-Jan-2000 |
rbb |
Initialize all ap_file_t's to NULL. This allows ap_open and ap_stat to
work together without causing memory leaks. |
a6b90df8ea0484168e477716e940b18adb89afc6 84376 |
|
30-Dec-1999 |
rbb |
Some changes to the ap_strftime function. We now inform the user of the
length of the string written, and we return a status code. I expect the
status code to mean a bit more on Windows than it currently does on Unix. |
2aae2a5a082299409975bb4d4a9c109df26839ce 84355 |
|
21-Dec-1999 |
rbb |
Remove a bunch of functions that are being replaced by functions in APR.
Also finished porting Apache to use APR in most cases. |
44c46ef733836b32585d135d2d90856e7cfd9929 84338 |
|
20-Dec-1999 |
rbb |
First step in getting Apache to use APR's time libraries. This gets a good
number of them, but I think there are more time values still in the Apache
code. This works under Linux, but has not been tested anywhere else. |
7b85491921b9bfae551088fad57aa683fb108311 84186 |
|
30-Nov-1999 |
manoj |
The first part of the big autoconf patch. This replaces a bunch of
NEED_* macros with HAVE_* macros to be more consistent with autoconf. |
2b484455736f4c30447aa852764f53282cbeb5dd 84134 |
|
19-Nov-1999 |
rbb |
First step in removing the fprintf(stderr problem from Apache. Basically,
I defined APLOG_STARTUP, which refrains from printing the date string
and the log level information in log_error_core. I then changed all the
fprintf(stderr calls to ap_log_error, and used APLOG_STARTUP.
log_error_core on Unix takes care of creating a log file and directing
it to stderr if a log file isn't already active. I will continue to
make these changes tomorrow. Currently, the main code and the dexter
mpm have been modified. |
0d281502553310060615306fb6ca92b2f4f97d7a 84128 |
|
16-Nov-1999 |
rbb |
Cleanup the ZZZ comments. Basically these used to mark places where APR
is needed. It is much easier to do this conversion by hand than by
searching for old comments, so they are going away now. |
380abdbec791404634dcd947fa9128ca59f58686 84091 |
|
02-Nov-1999 |
bjh |
De-errno ap_pcfg_openfile(). |
0942697a9b5de44865676345a3828741c827efe6 84007 |
|
20-Oct-1999 |
rbb |
Add a status value to ap_log_error and ap_log_rerror. This allows us to use
apr_status codes in our error logs. The main advantage of this, is portable
error codes. Now, Windows will finally be able to use errno! |
0c9a934def126ac34fd6bfc8d25c5cb763ef126d 83996 |
|
14-Oct-1999 |
rbb |
I missed one function when swapping paramters. This fixes it. I think I
have caught them all this time. I really hope this is the final time I have
to swap parameters. |
70a2c0407879c11b29adc782d1665a0131f30b3f 83937 |
|
07-Oct-1999 |
rbb |
Bring file_io up to the new parameter order for APR. I have decided to do
these on a directory by directory basis for the rest of APR. I hope to
cause fewer problems for other developers by doing it this way. |
9fc4cd65587bea7b5a4dd570f4e191a34c7685c8 83936 |
|
06-Oct-1999 |
bhyde |
Remove obsolete ap_util_init function. |
7683841e9ca05fde9301f2f74593e2a5b3910012 83928 |
|
04-Oct-1999 |
rbb |
Simple name change. the function ap_gets has been renamed to ap_fgets.
This is more in-line with what the function does, and how it acts, so
it makes sense. |
d936d7dcfc1a35dec2a026d23053f8230301cdff 83927 |
|
04-Oct-1999 |
rbb |
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 |
d808e41560f5dba1b6b11817dafd46c0bb0b3c1f 83917 |
|
24-Sep-1999 |
stoddard |
Fix some broken logic. This logic now replicates what is in Apache 1.3. |
ffba30a2a49b298bfa65151bdf61ce3e3d4636d1 83912 |
|
21-Sep-1999 |
manoj |
Move ap_pregcomp and ap_pregfree from APR to Apache proper, since these
functions depend on Apache's regex libraries. This also should fix
compilation on platforms not using hsregex. |
ab5581cc78e9d865b0a6ab1404c53347b3276968 83879 |
|
08-Sep-1999 |
rbb |
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 |
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697 83852 |
|
31-Aug-1999 |
rbb |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly. |
50486fceda867c0bb0223d9548c7c1c9b194259d 83782 |
|
26-Aug-1999 |
fielding |
More MPM changes. Remove ap_can_exec and add a couple prototypes.
Submitted by: Dean Gaudet |
58690117859e26ac8bf7e3592152e197aa7e5ee2 83781 |
|
26-Aug-1999 |
fielding |
Optimize ap_make_dirstr_prefix().
Submitted by: Manoj Kasichainula |
061c3874622b67beff724876b9bd1b1f291f2eaa 83779 |
|
26-Aug-1999 |
fielding |
Odd comments and leftover bits from the pthreads version.
The comments really should be deleted, or at least cleaned up.
Submitted by: pthreads leftovers |
0a044ea442983d5a2ea5d83f5a635a392337dd0a 83774 |
|
26-Aug-1999 |
fielding |
Faster versions of ap_gm_timestr_822() and ap_unescape_url().
Submitted by: Manoj Kasichainula |
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1 83750 |
|
24-Aug-1999 |
fielding |
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group |