aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-01 18:59:08 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-01 18:59:08 +0000
commit424bcf9951af5f7f35da6f1ed950813dbd8d3c1a (patch)
tree627da2b2ea45250a6dbacb98da5806d8daa6a982
parenta6b07b28e0cbfcc7775a147a3a998eb9ad227839 (diff)
'#' is another reserved character for URIs that also needs to be escaped.
(closes issue #10543) Reported by: blitzrage Patches: 20080418__bug10543.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@115017 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index 6d20a9d90..2bb4fb2bb 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -446,7 +446,7 @@ static void base64_init(void)
*/
char *ast_uri_encode(const char *string, char *outbuf, int buflen, int doreserved)
{
- char *reserved = ";/?:@&=+$, "; /* Reserved chars */
+ char *reserved = ";/?:@&=+$,# "; /* Reserved chars */
const char *ptr = string; /* Start with the string */
char *out = NULL;