179565be4043d7e5f9161aa75271fa0a001866d9 1559394 |
|
18-Jan-2014 |
covener |
followups to r1557641 suggested by nd -- add
prefix to both the macro and the handler name
itself. |
cc06c8e7a7e785b46083984731b701d0c5447c72 1557641 |
|
13-Jan-2014 |
covener |
don't search for directory indexes/directoryslashes if a URL is in the
middle of being rewritten [in per-dir context]. PR53929 |
742318b93e89c311f66b55f426c4d9cf2c14628b 1174748 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
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 |
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8 263931 |
|
29-Aug-2005 |
ianh |
Doxygen fixup / cleanup
submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
78cd48acd325773619d78ac0d7263a99a8922fae 102618 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
52f13df58bab77959915d669d156f89c3f1aa7ed 102572 |
|
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. |
2c3d2dbd349611a7ca533df1f883aaf6d96fa2ff 100792 |
|
26-Jul-2003 |
nd |
oof. Strip all non-public stuff from mod_rewrite.h and
reorder the code in mod_rewrite.c in order to get a rid of
the forward declaration. Cleaned up the comments as well.
No real code change, but a quite big diff ... |
9d46ddfd32abac55f8edf0c9a55b2476db9173a6 100772 |
|
24-Jul-2003 |
nd |
optimization/cleanup.
The generic flagparser (read: lexer) for RewriteRules and RewriteConds
does the same except for one function call.
Collapse these to functions to one and make the result more
readable. |
e17b664ecc183d3dce1c6034851e498f89229a17 100675 |
|
17-Jul-2003 |
nd |
optimization; rewrite the do_expand function in order to:
+ give it a better interface
+ get a rid of most of the fixed stack buffers and then
+ no longer limit rewritten uris, expanded variables etc to
2k
+ make it better readable and understandable at all.
This is a two-tiered commit for better diffs. |
7bfb60cc1a60c889c6a836d62348be42fc5d547e 100651 |
|
16-Jul-2003 |
nd |
optimization: no need to use the pool here. This is
obviously a static value. |
04776f38f2c7e6c005f84f0bc587e328b35e6374 100644 |
|
16-Jul-2003 |
nd |
optimization: no need to search linear for headers.
apr_table_get should be more efficient nearly always. |
613d41acb9a6aab66a0e38f1fe0f03c5ca6f3fb5 98863 |
|
01-Mar-2003 |
nd |
Prevent endless loops of internal redirects in mod_rewrite by
aborting after exceeding a limit of internal redirects. The
limit defaults to 10 and can be changed using the RewriteOptions
directive with the new MaxRedirects=n argument.
(The latter required some restructuring of the RewriteOptions
evaluation code).
(Documentation patch follows asap)
PR: 17462 |
edcf63bfe6b8d28907c7d9708bf2adfdb781790b 98808 |
|
27-Feb-2003 |
nd |
Fix mod_rewrite's abs_URI handling.
- uris were partially not correctly escaped (in particular:
ldap, news, mailto)
- not all uri schemes contain an authority component (//)
- add nntp:// scheme
- don't add a query string (and drop r->args) if it's not
http or mailto scheme
- be more efficient (think so) |
64583cc2b939d094828aa4a17fdfa9b2573268b6 98782 |
|
24-Feb-2003 |
nd |
This is part two.
It fixes the prefix_stat function. (which does a stat call on the first
path segment). This function was still tailored for unix systems only.
It should work on other systems as well now. |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
0bbb249eafe9ef9508821f0ef58e7440625ecd62 96493 |
|
23-Aug-2002 |
trawick |
add the ability to specify the dbm type (e.g., gdbm, ndbm) for
dbm rewrite maps
use dbm:filename for the default type
use dbm=TYPE:filename for a non-default type |
744eef22784caa334710cd90f1ab054adffed9e4 96483 |
|
22-Aug-2002 |
trawick |
remove some remaining NO_DBM_REWRITEMAP cruft from mod_rewrite
which broke the build on Win32
mod_rewrite.h didn't spit out the decl of lookup_map_dbmfile
if NO_DBM_REWRITEMAP was still defined, and mod_rewrite.dsp
continued to define NO_DBM_REWRITEMAP
Reported by: Jerry Baker <jerrybaker@attbi.com> |
61afed048a4d67ed923d52e5c865c0f10a8e9e73 96478 |
|
21-Aug-2002 |
trawick |
Change mod_rewrite to use apr-util's dbm support for dbm rewrite
maps.
For now, the SDBM dbm flavor is always used. It won't be compatible
with dbm rewrite maps built for Apache 1.3 until apr-util supports
ndbm and mod_rewrite is changed to prefer ndbm over the built-in
sdbm.
PR: 10644 |
7a23067e782dd5612d4d4b539906e1733b664df7 96475 |
|
21-Aug-2002 |
jwoolley |
Fix a problem whereby RewriteMap prg:'s would get out of sync due to
the inappropriate use of nonblocking reads. Also get rid of the stderr
altogether since mod_rewrite never uses it.
PR: 9534 |
854cc4d3451547c2359c27870a3c354ad385a49b 95840 |
|
22-Jun-2002 |
ianh |
new configuration option for mod_rewrite to set cookies.
configuration is like the following
RewriteRule (.*) - [CO=<cookiename>:$1:<domain>:<expiry in minutes>]
Submitted by: Brian Degenhardt <bmd@mp3.com>
Reviewed by: Ian Holsman |
a1c03a1ceca291ab5042259c639fafe8ccae556a 95372 |
|
30-May-2002 |
rbb |
Tokenize the arguments for rewrite programs during config parsing, and
just use that information later. I was having a problem with prg
directives with arguments failing the configuration. The problem was
a call to stat, which was being passed the program name and the arguments.
Obviously, the arguments were messing up the call to stat. This gets the
test suite working for me again. |
c6edcf04010c354eef81d0b9c02aa917965637a2 95337 |
|
29-May-2002 |
jwoolley |
Error out a bit more nicely if the RewriteMap prg: is not found. We
can't just apr_stat in the first init round because we haven't run
apr_tokenize_to_argv() yet, and it would be a relatively ugly hack to run
it twice just for that. Well, I suppose we could store the argv in the
rewritemap structure, but ... nah. With this, we shutdown (cleanly, as
opposed to the old exit(1) method) if we go to execute a rewritemap
and discover it doesn't exist, and log a nice descriptive message at the
end of the error_log. |
031f1eea4d5ae32771db6664989aecc2729f9511 94969 |
|
06-May-2002 |
aaron |
Fix mod_rewrite hang when APR uses SysV Semaphores. Before we were
silently failing when locking/unlocking the mutex, since httpd
child processes didn't have permissions to access the root-created
semaphore.
PR: 8143 |
2ae7ad6f58b7e3188ed4bd375a8930808529ba71 94939 |
|
06-May-2002 |
jwoolley |
Added an optional function (ap_register_rewrite_mapfunc) which allows
third-party modules to extend mod_rewrite's "int:" internal RewriteMap
functionality.
Concept by: Tahiry Ramanamampanoharana <nomentsoa@hotmail.com> |
cba0728e3535ee87e89cdb3cb54ce91eda18f6cc 94465 |
|
05-Apr-2002 |
aaron |
Update mod_rewrite to use the new APR global mutex type. |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
9d0665da83d1e22c0ea0e5f6f940f70f75bf5237 92144 |
|
23-Nov-2001 |
ianh |
Modify post_config hook so that it can return a error,
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully
PR:
Obtained from:
Submitted by:
Reviewed by: (Idea only Jeff Trawick) |
c95f419952af464c35f32d5c5754ad56aec754eb 91941 |
|
14-Nov-2001 |
aaron |
Convert mod_rewrite's INTRAPROCESS lock to the newly supported
apr_thread_mutex_t type lock. Passes all rewrite.t tests. |
904d7bf799c6216beb34519463596b4fce630308 91612 |
|
21-Oct-2001 |
wrowe |
Thread saftey lock for mod_rewrite's cache... I'm sure others will have
some 'better ideas' but this will work for now.
Submitted by: Brian Pane <bpane@pacbell.net> |
5918d21085b9748f957276afc287276333326e39 89158 |
|
18-May-2001 |
coar |
Bring forward the NOESCAPE flag from 1.3.. |
aaad84c3e4b4c45fe6a7cc1545e3a4bf4d343629 88443 |
|
03-Mar-2001 |
trawick |
Fix some APR-ization issues:
1) we're using an apr_time_t file mtime, but trying to fit it in
a time_t entry in the cache and in parameters to the cache
access routines; use apr_time_t everywhere
2) we need to use apr_fileperms_t instead of mode_t for APR
file permissions
PR: 6980 |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
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 |
5084a7bc0b7c8bd0e6b2d5e1f2dd9bef0bf86d6d 88059 |
|
10-Feb-2001 |
gstein |
http_conf_globals.h is gone |
8ba9d5e9aaaa79dba0de13f5c1b6e725d98f1dc2 87723 |
|
18-Jan-2001 |
fanf |
Bring forward from 1.3:
I broke mod_rewrite by modifying strings in place when expanding them,
because variable lookups can cause subrequests which cause mod_rewrite
to do its stuff again including an expansion on the same string, which
is then syntactically invalid. So copy the lookup keys somewhere else
before using them in such a way that may cause recursion.
In addition to this, my parser could also be confused by complicated
nested rewrite map expansions like ${map1:${map2:key|dflt}|dflt} so
fix that too by keeping track of {} when looking for |.
PR: 7087 |
254becf0cdcf0d9631da62ae317c477f6366119c 86638 |
|
18-Oct-2000 |
fanf |
Restore functionality broken by the mod_rewrite security fix:
rewrite map lookup keys and default values are now expanded
so that the lookup can depend on the requested URI etc.
Because the new code is recursive you can now write configurations
like the following (with nested map lookups) which wasn't directly
possible before -- you had to use a RewriteCond and a %N backref
instead, as in http://www.apache.org/docs/vhosts/mass.html#xtra-conf
RewriteMap tolower int:tolower
RewriteMap host2user txt:/home/www/conf/virtusertbl
RewriteRule /(.*) /home/${host2user:${tolower:%{HTTP_HOST}}|www}/public_html
PR: 6671 |
338557e3bec207b00891e78a0aa003a9aaf7b581 86302 |
|
23-Sep-2000 |
fanf |
Fix a security problem that affects certain configurations of mod_rewrite.
If the result of a RewriteRule is a filename that contains expansion
specifiers, especially regexp backreferences $0..$9 and %0..%9, then it
may be possible for an attacker to access any file on the web server.
The fix replaces a multi-pass string expander with a one-pass expander,
and includes the code quality improvements that were committed separately
to 1.3.
Message-Id: <E13OQB5-0004Xs-00@hand.dotat.at> |
f0b8dcb0a0d70f8c9fc59d99fb3b235f4571a5cb 86124 |
|
21-Aug-2000 |
trawick |
Fix some bad calls to ap_log_rerror() in mod_rewrite. In some places,
errno was passed as the APR error code. In other places, 0 was passed. |
e5e42830f51e7307fb36c7908a22d6e530903a3c 85980 |
|
03-Aug-2000 |
trawick |
Clean up maintainer-mode compiles of mod_rewrite (use AP_INIT_xx macros
and clean up resulting warnings). |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
ee4a7424a2d75f6c2296459ce31bc4e02b923bcd 85833 |
|
13-Jul-2000 |
rbb |
Apache doesn't actually check for stdarg.h, but APR does. Just use the
APR defined APR_HAVE_STDARG_H to check for the existance of stdarg.h |
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. |
1ad3e0e92f1bb20387eb6238069c2fdeca8fa496 85536 |
|
12-Jun-2000 |
rbb |
Missed one sys/stat.h in mod_rewrite.h. Removing it now. |
b5aed57c02a923d92b17122fa780bb5f2f14801d 85081 |
|
28-Apr-2000 |
dougm |
back out APR_ prefix for TRUE,FALSE |
89bde6084c4cb2c9304abb2a4a472a4428665d7a 85074 |
|
28-Apr-2000 |
dougm |
prefix TRUE,FALSE with APR_ |
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. |
ab2c1c1c83ec91415565da5a71fbc15d9685caa6 84879 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
39f49d7cf4ddf474b2d78c658f30f70f25aba11e 84829 |
|
23-Mar-2000 |
stoddard |
Get mod_rewrite working with APR locks
This has been tested on Linux and works (with the caveats:
must use --disable-hsregex, must define NO_DBM_REWRITEMAP,
must remove Dirks March 14 patch from util.c and httpd_config.c).
Submitted by: Paul Reder
Reviewed by: Bill Stoddard |
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 |
0c0afda9ab1830cc440f25b755aa363d23b20dd5 84379 |
|
31-Dec-1999 |
dgaudet |
merge 1.3 changes to rewrite forward onto 2.0
Submitted by: Paul J. Reder <rederpj@raleigh.ibm.com> |
895b674fa4e5a4c8fcbcb4e7b30630857653c149 84378 |
|
31-Dec-1999 |
dgaudet |
port mod_rewrite to 2.0
Submitted by: Paul J. Reder <rederpj@raleigh.ibm.com> |
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. |
0f081398cf0eef8cc7c66a535d450110a92dc8ae 83751 |
|
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 |