* Unescape a URL
* @param url The url to unescape
* @return 0 on success, non-zero otherwise
+ * @deprecated Replaced by apr_unescape_url() in APR
*/
AP_DECLARE(int) ap_unescape_url(char *url);
* @param url The url to unescape
* @param decode_slashes Whether or not slashes should be decoded
* @return 0 on success, non-zero otherwise
+ * @deprecated Replaced by apr_unescape_url() in APR
*/
AP_DECLARE(int) ap_unescape_url_keep2f(char *url, int decode_slashes);
* Unescape an application/x-www-form-urlencoded string
* @param query The query to unescape
* @return 0 on success, non-zero otherwise
+ * @deprecated Replaced by apr_unescape_url() in APR
*/
AP_DECLARE(int) ap_unescape_urlencoded(char *query);
* @param p The pool to allocate from
* @param s The path to convert
* @return The converted URL
+ * @deprecated Replaced by apr_pescape_path_segment() in APR
*/
AP_DECLARE(char *) ap_escape_path_segment(apr_pool_t *p, const char *s)
AP_FN_ATTR_NONNULL_ALL;
* @param c The preallocated buffer to write to
* @param s The path to convert
* @return The converted URL (c)
+ * @deprecated Replaced by apr_escape_path_segment() in APR
*/
AP_DECLARE(char *) ap_escape_path_segment_buffer(char *c, const char *s)
AP_FN_ATTR_NONNULL_ALL;
* If not set, there will be one byte of additional space after the
* NUL, to allow the caller to append a '/'.
* @return The converted URL
+ * @deprecated Replaced by apr_pescape_path() in APR
*/
AP_DECLARE(char *) ap_os_escape_path(apr_pool_t *p, const char *path, int partial)
AP_FN_ATTR_NONNULL_ALL;
* @param p The pool to allocate from
* @param s The path to convert
* @return The converted URL
+ * @deprecated Replaced by apr_pescape_url() in APR
*/
AP_DECLARE(char *) ap_escape_urlencoded(apr_pool_t *p, const char *s)
AP_FN_ATTR_NONNULL_ALL;
* @param c The preallocated buffer to write to
* @param s The path to convert
* @return The converted URL (c)
+ * @deprecated Replaced by apr_escape_url() in APR
*/
AP_DECLARE(char *) ap_escape_urlencoded_buffer(char *c, const char *s)
AP_FN_ATTR_NONNULL_ALL;
* @param p The pool to allocate from
* @param s The html to escape
* @return The escaped string
+ * @deprecated Replaced by apr_pescape_entity() in APR
*/
#define ap_escape_html(p,s) ap_escape_html2(p,s,0)
/**
* @param s The html to escape
* @param toasc Whether to escape all non-ASCII chars to \&\#nnn;
* @return The escaped string
+ * @deprecated Replaced by apr_pescape_entity() in APR
*/
AP_DECLARE(char *) ap_escape_html2(apr_pool_t *p, const char *s, int toasc)
AP_FN_ATTR_NONNULL_ALL;
* @param p The pool to allocate from
* @param str The string to escape
* @return The escaped string
+ * @deprecated Replaced by apr_pescape_echo() in APR
*/
AP_DECLARE(char *) ap_escape_logitem(apr_pool_t *p, const char *str)
AP_FN_ATTR_NONNULL((1));
* @param source The string to escape
* @param buflen The buffer size for the escaped string (including "\0")
* @return The len of the escaped string (always < maxlen)
+ * @deprecated Replaced by apr_escape_echo() in APR
*/
AP_DECLARE(apr_size_t) ap_escape_errorlog_item(char *dest, const char *source,
apr_size_t buflen)
* @param p The pool to allocate from
* @param s The command to escape
* @return The escaped shell command
+ * @deprecated Replaced with apr_escape_shell() in APR
*/
AP_DECLARE(char *) ap_escape_shell_cmd(apr_pool_t *p, const char *s)
AP_FN_ATTR_NONNULL_ALL;
* @param p The pool to allocate from
* @param bufcoded The encoded string
* @return The decoded string
+ * @deprecated Replaced by apr_pbase64_decode() in APR.
*/
AP_DECLARE(char *) ap_pbase64decode(apr_pool_t *p, const char *bufcoded);
* @param p The pool to allocate from
* @param string The plaintext string
* @return The encoded string
+ * @deprecated Replaced by apr_pbase64_encode() in APR.
*/
AP_DECLARE(char *) ap_pbase64encode(apr_pool_t *p, char *string);
* @param p The pool to allocate memory from
* @param instring The string to search for "
* @return A copy of the string with escaped quotes
+ * @deprecated Replaced by apr_pescape_echo() in APR
*/
AP_DECLARE(char *) ap_escape_quotes(apr_pool_t *p, const char *instring);
* @param srclen length of the data
* @param dest pointer to buffer of length (2 * srclen + 1). The resulting
* string will be NUL-terminated.
+ * @deprecated Replaced by apr_escape_hex() in APR
*/
AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest)
AP_FN_ATTR_NONNULL_ALL;