summaryrefslogtreecommitdiffstats
path: root/server/util_xml.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core: Make sure and check that LimitXMLRequestBody fits in system memory.Yann Ylavic2022-03-071-1/+1
| | | | | | | | | | | | LimitXMLRequestBody can not exceed the size needed to ap_escape_html2() the body without failing to allocate memory, so enforce this at load time based on APR_SIZE_MAX, and make sure that ap_escape_html2() is within the bounds. Document the limits for LimitXMLRequestBody in our docs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898686 13f79535-47bb-0310-9956-ffa450edef68
* core, modules: like r1657897 but for core and other modules than mod_proxy.Yann Ylavic2015-03-101-0/+1
| | | | | | | | | | | | | | More uses of ap_map_http_request_error() and AP_FILTER_ERROR so that we never return an HTTP error status from a handler if some filter generated a response already. That is, from a handler, either ap_get_brigade() (an input filter) returned AP_FILTER_ERROR and we must forward it to ap_die(), or ap_pass_brigade() (an output filter) failed with any status and we must return AP_FILTER_ERROR in any case for ap_die() to determine whether a response is needed or not. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1665625 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-031-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Introduce ap_(get|set)_core_module_config() functions/macros and use themStefan Fritsch2011-06-061-1/+3
| | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132781 13f79535-47bb-0310-9956-ffa450edef68
* Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to takeStefan Fritsch2010-06-061-0/+2
| | | | | | | advantage of per-module loglevels git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
* update license header textRoy T. Fielding2006-07-111-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
* Update the copyright year in all .c, .h and .xml filesColm MacCarthaigh2006-04-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
* - Put a prefix on this error message to have a chance of finding it in the ↵Paul Querna2005-05-271-1/+1
| | | | | | source. Just stuffing the parser error buffer into the error log is not helpful if I didn't know where it came from. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@178818 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
* Complete the EBCDIC conversion support for XML documents.Martin Kraemer2004-06-291-0/+4
| | | | | | | | | With this change, mod_dav works on an EBCDIC machine. Submitted by: Jean-Frederic Clere <jfclere apache.org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104075 13f79535-47bb-0310-9956-ffa450edef68
* Forward-port from mod_dav 1.0:Joe Orton2004-03-141-1/+3
| | | | | | | | | * server/util_xml.c (ap_xml_parse_input): Give a 413 (Request Entity Too Large) not a 400 if the client exceeds the configured XML request body limit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102959 13f79535-47bb-0310-9956-ffa450edef68
* fix name of The Apache Software FoundationAndré Malo2004-02-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
* apply Apache License, Version 2.0André Malo2004-02-061-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
* update license to 2004.André Malo2004-01-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
* get rid of _FOREACHCliff Woolley2003-11-161-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101788 13f79535-47bb-0310-9956-ffa450edef68
* remove unused variable.André Malo2003-02-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98708 13f79535-47bb-0310-9956-ffa450edef68
* Don't emit an error when there is no body.Justin Erenkrantz2003-02-171-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98695 13f79535-47bb-0310-9956-ffa450edef68
* Rework ap_xml_parse_input to work with bucket brigades rather than doing allJustin Erenkrantz2003-02-171-24/+45
| | | | | | | | | of the unneeded copying associated with ap_get_client_block. PR: 16134 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98691 13f79535-47bb-0310-9956-ffa450edef68
* finished that boring job:André Malo2003-02-031-1/+1
| | | | | | | | | update license to 2003. Happy New Year! ;-)) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
* Style police come before the code police.Justin Erenkrantz2002-06-031-28/+29
| | | | | | | (No functional changes.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95481 13f79535-47bb-0310-9956-ffa450edef68
* stop using APLOG_NOERRNO in calls to ap_log_?error()Jeff Trawick2002-05-171-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95149 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
* Don't attempt to call apr_xml_parser_done() twice -- just exit when we haveGreg Stein2001-10-061-2/+5
| | | | | | | a problem terminating the parser. _geterror() cannot be called either. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91333 13f79535-47bb-0310-9956-ffa450edef68
* Shift XML handling code from Apache down into APRUTILGreg Stein2001-02-241-757/+22
| | | | | | | | | | | | | | | - teach APRUTIL how to find Expat and respond to --with-expat - Apache's configure points APRUTIL's configure at its srclib/expat-lite (this will go away; aprutil can work against installed expats or fallback to an expat bundled within aprutil) - shift some of the timing of INCLUDES and top_builddir processing in the APRUTIL configure.in script - expose the new apr_xml functions in apr_xml.h, apr_xml.c (by building it), and apu_compat.h - rewrite util_xml.[ch] in terms of apr_xml git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88299 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
* Clean up some of the includes:Greg Stein2001-02-101-3/+3
| | | | | | | | | | - explicitly include apr_lib.h since ap_config.h doesn't - use apr_want.h where possible - use APR_HAVE_ where possible - remove some unneeded includes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88060 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-2/+2
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
* *) Compensate for recent changes in the APR headers. Specifically, someGreg Stein2000-11-261-1/+7
| | | | | | | | | | | | 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() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87080 13f79535-47bb-0310-9956-ffa450edef68
* use apr_size_tGreg Stein2000-11-161-15/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86977 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolsWilliam A. Rowe Jr2000-10-161-7/+7
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86609 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-26/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
* Move all APR functions related to strings to their own directory, andRyan Bloom2000-07-211-0/+1
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85867 13f79535-47bb-0310-9956-ffa450edef68
* shift the LimitXMLRequestBody directive to the core. use it from util_xml.Greg Stein2000-07-111-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85816 13f79535-47bb-0310-9956-ffa450edef68
* Joe Orton says:Greg Stein2000-07-041-57/+448
| | | | | | | | | | | | | | | | This patch is a first pass at making util_xml.c independent of mod_dav: * Rename dav_* to ap_xml_* for exported interface * Remove dav_* from private functions * Move text_header handling in from dav/main/util.c * Move XML tree -> text conversion in * Add include/util_xml.h header from parts of mod_dav.h Submitted by: Joe Orton <joe@orton.demon.co.uk> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85760 13f79535-47bb-0310-9956-ffa450edef68
* misc const cleanups and others issues found using maintainer-modeGreg Stein2000-07-031-3/+11
| | | | | | | | (initial errors found by Ryan Bloom). also switch to use new command table initializer macros. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85751 13f79535-47bb-0310-9956-ffa450edef68
* no need for relative includes. the directories will be added to theGreg Stein2000-07-011-2/+1
| | | | | | | compilation by the configure system. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85742 13f79535-47bb-0310-9956-ffa450edef68
* get the DAV stuff to compile for Apache 2.0. some unpleasantries are inGreg Stein2000-06-281-7/+9
| | | | | | | there, but it *does* compile. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85720 13f79535-47bb-0310-9956-ffa450edef68
* first, obvious step: alter the license/copyright on all mod_dav files.Greg Stein2000-06-281-14/+54
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85718 13f79535-47bb-0310-9956-ffa450edef68
* initial checkin of the new Apache DAV code. this is a pristine copy ofGreg Stein2000-06-281-0/+421
mod_dav 1.0.1 (tag "V1_0_1" in the mod_dav CVS repository). For historical information about these files, see the (old) mod_dav web site at http://www.webdav.org/mod_dav/. CVS repository information can be located from those pages. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85717 13f79535-47bb-0310-9956-ffa450edef68