]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
'#' is another reserved character for URIs that also needs to be escaped.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 1 May 2008 18:59:08 +0000 (18:59 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 1 May 2008 18:59:08 +0000 (18:59 +0000)
(closes issue #10543)
 Reported by: blitzrage
 Patches:
       20080418__bug10543.diff.txt uploaded by Corydon76 (license 14)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115017 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index 6d20a9d902a56fce772211da6c60e763d638bb38..2bb4fb2bb4ab65d5437d588aa1c9cf20e8c16a55 100644 (file)
@@ -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;