From 735637fa4d43cc5800e4c6e60002c36b6cd22fe6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 15 Jun 2020 19:43:46 +0000 Subject: [PATCH] [core] don't decode strings with no encoding in them --- src/switch_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }