]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7205 #comment do not url encode unless an at sign is in the uri #resolve
authorBrian West <brian@freeswitch.org>
Tue, 27 Jan 2015 20:35:18 +0000 (14:35 -0600)
committerBrian West <brian@freeswitch.org>
Tue, 27 Jan 2015 20:35:18 +0000 (14:35 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 7438d140a138df666da48dc5d847696bfda07c48..a9793b9fe0d5dec857c0357b089d851172dd818b 100644 (file)
@@ -4254,6 +4254,10 @@ static int protect_dest_uri(switch_caller_profile_t *cp)
        switch_size_t enclen = 0;
        int mod = 0;
 
+       if (!(e = strchr(p, '@'))) {
+               return 0;
+       }
+
        while((p = strchr(p, '/'))) {
                q = p++;
        }