1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Commit Graph

597 Commits

Author SHA1 Message Date
Joe Orton
90521799bd 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


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357161 13f79535-47bb-0310-9956-ffa450edef68
2005-12-16 14:27:47 +00:00
William A. Rowe Jr
855679f35b Recover text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@351717 13f79535-47bb-0310-9956-ffa450edef68
2005-12-02 13:46:07 +00:00
Ruediger Pluem
e6e065d38c * Minor performance tweak by reusing already calculated strlen in get_body.
Submitted by: Christophe Jaillet <christophe.jaillet wanadoo.fr>
Reviewed by: Ruediger Pluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345686 13f79535-47bb-0310-9956-ffa450edef68
2005-11-19 20:59:16 +00:00
Jim Jagielski
08c97ba290 No functional change: remove "internal" tab spacing/formatting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345053 13f79535-47bb-0310-9956-ffa450edef68
2005-11-16 16:31:25 +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
Jim Jagielski
5d2fae4818 No functional change: simple detabbing of indented code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332305 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:05:51 +00:00
Colm MacCarthaigh
86751a71e4 Explain why we have the regular file typecheck. No functional changes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@291672 13f79535-47bb-0310-9956-ffa450edef68
2005-09-26 16:51:41 +00:00
Ian Holsman
8c1e315d3f Doxygen fixup / cleanup
submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@263931 13f79535-47bb-0310-9956-ffa450edef68
2005-08-28 23:03:59 +00:00
Paul Querna
b0a7a77363 Do not check the value of r->handler.
This allows the use of SetHandler for an entire directory, and since we already check via the stat structure if this is a directory, there is no reason for this extra check, which causes a regression since 1.3.

PR: 25435


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@233369 13f79535-47bb-0310-9956-ffa450edef68
2005-08-18 20:10:26 +00:00
Paul Querna
2a286fd49e Check an alternative return value for when a file or directory does not exist. Previously this would return a forbidden on the documentation website for any URL ending in .html.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219879 13f79535-47bb-0310-9956-ffa450edef68
2005-07-20 11:20:33 +00:00
Joe Orton
9687f8c6a7 Update remaining 2004 copyright notices.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190592 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 13:54:34 +00:00
Joe Orton
eab819d612 * modules/mappers/config9.m4: Substitute INSTALL_DSO as "yes" if
mod_so is linked in, or "no" otherwise.

* build/special.mk: Remove hack to guess whether mod_so is linked in
based on BUILTIN_LIBS; rely on INSTALL_DSO definition from
config_vars.mk.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@189603 13f79535-47bb-0310-9956-ffa450edef68
2005-06-08 16:07:46 +00:00
William A. Rowe Jr
20d06d7a06 Reintroduce stack frame construction with /Oy- (removal was implied by /O2).
This makes binaries far easier to debug, during operation and for post-crash
  .dmp analysis.  Do not alter /Gs optimizations per brane.

Reviewed by: stoddard, brane

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170253 13f79535-47bb-0310-9956-ffa450edef68
2005-05-15 19:11:57 +00:00
Joe Orton
d4f34c59f7 * modules/mappers/mod_userdir.c (get_suexec_id_doer): Fix allocation
size.

PR: 34588


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@165151 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 15:19:06 +00:00
Greg Ames
0aee87d2ee lookup_map_txtfile: used buffered i/o rather than reading RewriteMap txt: files
one byte at a time. 

I was horrified to see a dump of a server with hundreds of worker threads in 
read() syscalls,  all trying to read a 149k RewriteMap file simultaneously.  
each thread finds one key, inserts it into the cache, then the rest of the 
information is discarded.  there are further improvements which could be made but 
let's try the simplest first.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161354 13f79535-47bb-0310-9956-ffa450edef68
2005-04-14 21:26:01 +00:00
André Malo
5071a0b5ae svn:eol-style = native
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160924 13f79535-47bb-0310-9956-ffa450edef68
2005-04-11 16:49:14 +00:00
Joshua Slive
fa4e866600 Merged the simple-conf branch changes r159781:160695 into the trunk.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160696 13f79535-47bb-0310-9956-ffa450edef68
2005-04-09 16:59:15 +00:00
Bradley Nicholes
564aeef123 Rethink the built-in vs shared modules for NetWare. Reposition mod_asis, mod_actions, mod_cgi, mod_imagemap, mod_userdir and mod_autoindex as shared rather than built-in.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160625 13f79535-47bb-0310-9956-ffa450edef68
2005-04-08 22:03:36 +00:00
William A. Rowe Jr
5d6aa7fbc4 Fix Win32 imap->imagemap transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160432 13f79535-47bb-0310-9956-ffa450edef68
2005-04-07 18:56:56 +00:00
Paul Querna
a19987ca7f rename mod_imap to mod_imagemap.
Broken by this commit:
 - Win32 Build -- I didn't want to muck with .dsp files.
 - Netware Build - Same Story as Win32.
 - Documentation Translations (could get away with direct changes to the module name, but I am not sure)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160365 13f79535-47bb-0310-9956-ffa450edef68
2005-04-07 02:04:03 +00:00
Paul Querna
963de58734 Don't always enable mod_imap. I always turn it off in my configs. Now you must
--enable-imap, or --enable-mods-shared=all|most to pick it up. 


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160307 13f79535-47bb-0310-9956-ffa450edef68
2005-04-06 15:59:52 +00:00
Joe Orton
a0570c8746 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


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@153384 13f79535-47bb-0310-9956-ffa450edef68
2005-02-11 12:00:41 +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
Sander Striker
1bccfffd49 More hardcoded schemes in mod_rewrite... :/
Cooked up in a debugging session with Justin Erenkrantz.

* modules/mappers/mod_rewrite.c

  (splitout_queryargs): Don't mess with the query args when dealing
    with ajp or balancer.

  (hook_uri2file): Account for r->filename being NULL.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@126171 13f79535-47bb-0310-9956-ffa450edef68
2005-01-23 00:58:30 +00:00
Sander Striker
47c6e884b2 Make the combination of mod_proxy_ajp and mod_rewrite work correctly.
* modules/proxy/proxy_ajp.c

  (ap_proxy_ajp_request): Update call to ajp_send_header().


* modules/proxy/ajp.h

  (ajp_send_header): Add a uri parameter.


* modules/proxy/ajp_header.c

  (ajp_marshal_into_msgb): Add a uri parameter and use the
   passed in uri instead of r->uri.

  (ajp_send_header): Add a uri parameter.  Update call to
   ajp_marshal_into_msgb().


* modules/mappers/mod_rewrite.c

  (is_absolute_uri): Add handling of 'ajp' and 'balancer' schemes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124584 13f79535-47bb-0310-9956-ffa450edef68
2005-01-07 22:17:48 +00:00
William A. Rowe Jr
38810d4197 Fix another signedness bug
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124278 13f79535-47bb-0310-9956-ffa450edef68
2005-01-05 21:23:29 +00:00
William A. Rowe Jr
d962fcfc8b FINALLY Correct ap_http_method()! It is NOT a method, it's a SCHEME!
Bumped mmn, and ap module cookie, for this function rename.

  It's not a deprecation, as ap_http_method would be a lovely function
  name sometime in the future: to determine what the function name implies.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@123882 13f79535-47bb-0310-9956-ffa450edef68
2005-01-02 05:33:44 +00:00
Bradley Nicholes
804ff9ab22 Allow APR to exist and build outside of the httpd/srclib file structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106975 13f79535-47bb-0310-9956-ffa450edef68
2004-11-30 00:12:39 +00:00
Joe Orton
c36ecfa64f Remove the .cvsignore files.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105796 13f79535-47bb-0310-9956-ffa450edef68
2004-11-19 09:07:29 +00:00
Joe Orton
3fae612ac1 * modules/mappers/mod_rewrite.c (hook_uri2file): Revert r1.259 to fix
regression in proxy and QUERY_STRING handling (though with proxy
issues on HEAD mod_rewrite [P] stuff is still completely broken).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105666 13f79535-47bb-0310-9956-ffa450edef68
2004-11-01 23:39:28 +00:00
Joe Orton
1b3a4c2013 * os/unix/os.h: Define AP_NEED_SET_MUTEX_PERMS.
* modules/mappers/mod_rewrite.c, modules/ssl/ssl_engine_mutex.c: Use
AP_NEED_SET_MUTEX_PERMS to determine whether unixd_set_*_mutex_perms
calls are necessary.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105411 13f79535-47bb-0310-9956-ffa450edef68
2004-10-12 11:55:30 +00:00
André Malo
528f497f68 remove the RewriteOption MaxRedirects; LimitInternalRecursion is sufficient
for the administrator


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105399 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:40:33 +00:00
Jeff Trawick
0e88f02adb mod_rewrite: Handle per-location rules when r->filename is unset.
Previously this would segfault or simply not match as expected,
depending on the platform.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105198 13f79535-47bb-0310-9956-ffa450edef68
2004-09-18 16:18:26 +00:00
André Malo
ef13d0f1da Fix query string handling for proxied URLs.
PR: 14518
Submitted by: michael teitler <michael.teitler cetelem.fr>,
    Jan Kratochvil <rcpt-dev.AT.httpd.apache.org jankratochvil.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104884 13f79535-47bb-0310-9956-ffa450edef68
2004-08-28 16:08:21 +00:00
André Malo
230ea0b75a Fix darn typo.
Submitted by: Jan Kratochvil <rcpt-dev.AT.httpd.apache.org jankratochvil.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104878 13f79535-47bb-0310-9956-ffa450edef68
2004-08-28 10:36:19 +00:00
Joe Orton
6c2a857f63 * modules/mappers/mod_userdir.c (register_hooks): Move suexec_identity
hook to APR_HOOK_FIRST to ensure it runs before the mod_suexec hook.

PR: 18156
Submitted by: Joshua Slive


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104699 13f79535-47bb-0310-9956-ffa450edef68
2004-08-18 08:21:55 +00:00
Joe Orton
28a2fdc595 Implement -t -DDUMP_MODULES using generic test_config hook rather than
hooking into mod_so from main.c:

* include/http_config.h, server/config.c: Declare test_config hook.

* server/main.c: Drop hooks into mod_so; run test_config hooks.

* modules/mappers/mod_so.h: Drop ap_dump_loaded_modules optional
function.

* modules/mappers/mod_so.c (dump_loaded_modules): Renamed from
ap_dump_loaded_modules; only run if -DDUMP_MODULES is defined.
(register_hooks): Register test_config hook instead of optional
function.

Reviewed by: Justin Erenkrantz, Paul Querna


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104685 13f79535-47bb-0310-9956-ffa450edef68
2004-08-17 13:47:10 +00:00
Geoffrey Young
23d0b267f0 fix compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104249 13f79535-47bb-0310-9956-ffa450edef68
2004-07-12 16:36:42 +00:00
Paul Querna
4072b62bf8 Add DUMP_MODULES
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104213 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 03:38:02 +00:00
André Malo
acbb11eddf make trailing-slash-behaviour configurable
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104154 13f79535-47bb-0310-9956-ffa450edef68
2004-07-03 16:43:39 +00:00
André Malo
7accf16eed Nobody objected:
<IfModule> now takes the module identifier in addition to the
filename.

CAUTION: this commit breaks the build on netware. It still needs
to be adjusted. (but I don't have any netware knowledge...)
Also, developers need to re-run buildconf on unices.

PR: 29003
Submitted by: Edward Rudd <eddie omegaware.com>, Andr� Malo


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103849 13f79535-47bb-0310-9956-ffa450edef68
2004-06-04 22:40:47 +00:00
André Malo
a800869190 parse content-length correctly using apr_strtoff function
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103769 13f79535-47bb-0310-9956-ffa450edef68
2004-05-25 20:16:19 +00:00
André Malo
73666bee49 save some cycles
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103768 13f79535-47bb-0310-9956-ffa450edef68
2004-05-25 20:01:23 +00:00
André Malo
7480ab8ebe external map responses were cut at 2048 bytes (and possibly got out of sync that
way). Now they are unlimited.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103691 13f79535-47bb-0310-9956-ffa450edef68
2004-05-17 23:36:15 +00:00
André Malo
49f48fb4b4 changed the following APIs to return an error instead of hard exiting:
ap_add_module, ap_add_loaded_module, ap_setup_prelinked_modules,
and ap_process_resource_config


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103517 13f79535-47bb-0310-9956-ffa450edef68
2004-04-25 17:23:31 +00:00
André Malo
49fb28b385 don't return forbidden, if the file was just not found.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103419 13f79535-47bb-0310-9956-ffa450edef68
2004-04-17 00:19:16 +00:00
André Malo
cce91f3c79 fix cache confusion which happens if different virtualhosts define
rewritemaps with the same name.
This is done using name mangling. For the cache we prefix the map name
with the hex value of the current server struct pointer. This way
inherited maps still use the same cache.

PR: 26462


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103335 13f79535-47bb-0310-9956-ffa450edef68
2004-04-10 20:23:51 +00:00
André Malo
b1ffbe9cdb mod_rewrite no longer turns forward proxy requests into reverse proxy
requests.

PR: 28125


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103261 13f79535-47bb-0310-9956-ffa450edef68
2004-04-03 20:29:37 +00:00
André Malo
609678cf32 add support for rewrite rules in proxy containers
PR: 27985


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103199 13f79535-47bb-0310-9956-ffa450edef68
2004-03-29 21:34:19 +00:00
Bradley Nicholes
3df96d441f Add modules/ssl to the include path for the NetWare build
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102984 13f79535-47bb-0310-9956-ffa450edef68
2004-03-16 01:32:58 +00:00