From: Graham Leggett Date: Sat, 5 Apr 2008 15:26:03 +0000 (+0000) Subject: Rename the ap_escape_path_segment_b function as suggested by X-Git-Tag: 2.3.0~812 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f05f1f9bbc9a87a63a905a17890ff834af814497;p=apache Rename the ap_escape_path_segment_b function as suggested by Ruediger Pluem, and make a corresponding minor bump. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645120 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/ap_mmn.h b/include/ap_mmn.h index 5aa047bfe5..db4027e196 100644 --- a/include/ap_mmn.h +++ b/include/ap_mmn.h @@ -154,6 +154,7 @@ * 20071108.12(2.3.0-dev) Remove ap_expr_clone from the API (same day it was added) * 20080403.0 (2.3.0-dev) Add condition field to core dir config * 20080403.1 (2.3.0-dev) Add authn/z hook and provider registration wrappers. + * 20080403.2 (2.3.0-dev) Add ap_escape_path_segment_buffer() and ap_unescape_all(). */ #define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */ @@ -161,7 +162,7 @@ #ifndef MODULE_MAGIC_NUMBER_MAJOR #define MODULE_MAGIC_NUMBER_MAJOR 20080403 #endif -#define MODULE_MAGIC_NUMBER_MINOR 1 /* 0...n */ +#define MODULE_MAGIC_NUMBER_MINOR 2 /* 0...n */ /** * Determine if the server's current MODULE_MAGIC_NUMBER is at least a diff --git a/include/httpd.h b/include/httpd.h index 0b631070f9..02c4cb347a 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1482,7 +1482,7 @@ AP_DECLARE(char *) ap_escape_path_segment(apr_pool_t *p, const char *s); * @param s The path to convert * @return The converted URL (c) */ -AP_DECLARE(char *) ap_escape_path_segment_b(char *c, const char *s); +AP_DECLARE(char *) ap_escape_path_segment_buffer(char *c, const char *s); /** * convert an OS path to a URL in an OS dependant way. diff --git a/server/util.c b/server/util.c index 5b6a522b65..d052624866 100644 --- a/server/util.c +++ b/server/util.c @@ -1690,7 +1690,7 @@ static APR_INLINE unsigned char *c2x(unsigned what, unsigned char prefix, * something with a '/' in it (and thus does not prefix "./"). */ -AP_DECLARE(char *) ap_escape_path_segment_b(char *copy, const char *segment) +AP_DECLARE(char *) ap_escape_path_segment_buffer(char *copy, const char *segment) { const unsigned char *s = (const unsigned char *)segment; unsigned char *d = (unsigned char *)copy; @@ -1711,7 +1711,7 @@ AP_DECLARE(char *) ap_escape_path_segment_b(char *copy, const char *segment) AP_DECLARE(char *) ap_escape_path_segment(apr_pool_t *p, const char *segment) { - return ap_escape_path_segment_b(apr_palloc(p, 3 * strlen(segment) + 1), segment); + return ap_escape_path_segment_buffer(apr_palloc(p, 3 * strlen(segment) + 1), segment); } AP_DECLARE(char *) ap_os_escape_path(apr_pool_t *p, const char *path, int partial)