diff options
Diffstat (limited to 'server/util.c')
-rw-r--r-- | server/util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/util.c b/server/util.c index 06da789718..2fe71a13c5 100644 --- a/server/util.c +++ b/server/util.c @@ -2189,6 +2189,16 @@ AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest) *dest = '\0'; } +AP_DECLARE(int) ap_has_cntrl(const char *str) +{ + while (*str) { + if (apr_iscntrl(*str)) + return 1; + str++; + } + return 0; +} + AP_DECLARE(int) ap_is_directory(apr_pool_t *p, const char *path) { apr_finfo_t finfo; |