From e5a711af2470efbb4d9fe5161328fb25305dce70 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 27 Jan 2015 14:35:18 -0600 Subject: [PATCH] FS-7205 #comment do not url encode unless an at sign is in the uri #resolve --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++++ 1 file changed, 4 insertions(+) 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++; }