FSCORE-316
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12366 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6aca60f545
commit
598854328d
|
@ -1475,7 +1475,7 @@ SWITCH_DECLARE(size_t) switch_url_encode(const char *url, char *buf, size_t len)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (*p < ' ' || *p > '~' || strchr(urlunsafe, *p)) {
|
if (*p < ' ' || *p > '~' || strchr(urlunsafe, *p)) {
|
||||||
if ((x + 3) >= len) {
|
if ((x + 3) > len) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
buf[x++] = '%';
|
buf[x++] = '%';
|
||||||
|
|
Loading…
Reference in New Issue