From: Anthony Minessale Date: Mon, 15 Jun 2020 19:43:46 +0000 (+0000) Subject: [core] don't decode strings with no encoding in them X-Git-Tag: v1.10.7^2~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5111b6ef73d0f4c8e37e88d6fb52f10e196b4ff9;p=thirdparty%2Ffreeswitch.git [core] don't decode strings with no encoding in them --- diff --git a/src/switch_utils.c b/src/switch_utils.c index 1d590d24f4..107d1a8643 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -3508,7 +3508,7 @@ SWITCH_DECLARE(char *) switch_url_decode(char *s) char *o; unsigned int tmp; - if (zstr(s)) { + if (zstr(s) || !strchr(s, '%')) { return s; }