Encoding LF and CR

This commit is contained in:
Geraldo Intmain 2019-02-24 17:15:27 -03:00
parent 7b3f6db70b
commit 774c27e690

View file

@ -943,6 +943,8 @@ inline std::string encode_url(const std::string& s)
switch (s[i]) {
case ' ': result += "%20"; break;
case '+': result += "%2B"; break;
case '\r': result += "%0D"; break;
case '\n': result += "%0A"; break;
case '\'': result += "%27"; break;
case ',': result += "%2C"; break;
case ':': result += "%3A"; break;