[core] don't decode strings with no encoding in them

This commit is contained in:
Anthony Minessale 2020-06-15 19:43:46 +00:00 committed by Andrey Volk
parent f3f757072d
commit 735637fa4d
1 changed files with 1 additions and 1 deletions

View 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;
}