1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-08 04:22:21 +03:00

Make it clear that '_' is a possible char and accepted

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1060802 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2011-01-19 13:08:08 +00:00
parent ceb1766d2d
commit 334ae2f5a2
4 changed files with 10 additions and 10 deletions

View File

@@ -1829,8 +1829,8 @@ AP_DECLARE(apr_status_t) ap_timeout_parameter_parse(
AP_DECLARE(int) ap_request_has_body(request_rec *r);
/**
* Cleanup a string.
* We only allow alphanumeric chars. Non-printable
* Cleanup a string (mainly to be filesystem safe)
* We only allow '_' and alphanumeric chars. Non-printable
* map to 'x' and all others map to '_'
*
* @param p pool to use to allocate dest
@@ -1838,18 +1838,18 @@ AP_DECLARE(int) ap_request_has_body(request_rec *r);
* @param dest cleaned up, allocated string
* @return Status value indicating whether the cleaning was successful or not.
*/
AP_DECLARE(apr_status_t) ap_pstr2alnum(apr_pool_t *p, const char *src, char **dest);
AP_DECLARE(apr_status_t) ap_pstr2_alnum(apr_pool_t *p, const char *src, char **dest);
/**
* Cleanup a string.
* We only allow alphanumeric chars. Non-printable
* Cleanup a string (mainly to be filesystem safe)
* We only allow '_' and alphanumeric chars. Non-printable
* map to 'x' and all others map to '_'
*
* @param src string to clean up
* @param dest cleaned up, pre-allocated string
* @return Status value indicating whether the cleaning was successful or not.
*/
AP_DECLARE(apr_status_t) ap_str2alnum(const char *src, char *dest);
AP_DECLARE(apr_status_t) ap_str2_alnum(const char *src, char *dest);
/* Misc system hackery */
/**