From: Brian West Date: Tue, 27 Jan 2015 20:35:18 +0000 (-0600) Subject: FS-7205 #comment do not url encode unless an at sign is in the uri #resolve X-Git-Tag: v1.4.17~1^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5a711af2470efbb4d9fe5161328fb25305dce70;p=thirdparty%2Ffreeswitch.git FS-7205 #comment do not url encode unless an at sign is in the uri #resolve --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 7438d140a1..a9793b9fe0 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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++; }