* 20110117.0 (2.3.11-dev) Merge <If> sections in separate step (ap_if_walk).
* Add core_dir_config->sec_if. Add ap_add_if_conf().
* Add pool argument to ap_add_file_conf().
- * 20110117.1 (2.3.11-dev) Add ap_pstr2alnum() and ap_str2alnum()
+ * 20110117.1 (2.3.11-dev) Add ap_pstr2_alnum() and ap_str2_alnum()
*/
#define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
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
* @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 */
/**
ap_slotmem_instance_t *new = NULL;
balancer->max_workers = balancer->workers->nelts + balancer->growth;
- ap_pstr2alnum(pconf, balancer->name, &balancer->sname);
+ ap_pstr2_alnum(pconf, balancer->name, &balancer->sname);
/* Create global mutex */
rv = ap_global_mutex_create(&(balancer->mutex), NULL, balancer_mutex_type,
return APR_SUCCESS;
}
-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) {
for ( ; *src; src++, dest++)
{
}
-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)
{
*dest = apr_palloc(p, strlen(src)+1);
if (!*dest)