| 241 | } |
| 242 | |
| 243 | char* UrlUnescape(char* to, TStringBuf from) { |
| 244 | while (!from.empty()) { |
| 245 | char ch = from[0]; |
| 246 | from.Skip(1); |
| 247 | if ('%' == ch && 2 <= from.length()) |
| 248 | ch = TFromHexZeroTerm::x2c(from); |
| 249 | *to++ = ch; |
| 250 | } |
| 251 | |
| 252 | *to = 0; |
| 253 | |
| 254 | return to; |
| 255 | } |
| 256 | |
| 257 | void UrlUnescape(TString& url) { |
| 258 | if (url.empty()) { |