]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] don't decode strings with no encoding in them
authorAnthony Minessale <anthm@signalwire.com>
Mon, 15 Jun 2020 19:43:46 +0000 (19:43 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:30 +0000 (22:00 +0300)
src/switch_utils.c

index 1d590d24f43a6c0d79042bc15e3565f148d17a4c..107d1a86436ed1a15e489f44f4de4bd0b43f156b 100644 (file)
@@ -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;
        }