Diff for libcfg+/src/platon/str/strcgi.c between version 1.3 and 1.4
| version 1.3, 2003/04/22 14:22:53 |
version 1.4, 2003/11/20 11:54:01 |
| Line 96 PLATON_FUNC(urldecode_core)(str, mode) |
|
| Line 96 PLATON_FUNC(urldecode_core)(str, mode) |
|
| another one we just get the value from hextable variable. */ |
another one we just get the value from hextable variable. */ |
| |
|
| if (str[i] == '%') { |
if (str[i] == '%') { |
| tmp[pos++] = (hextable[(int) str[++i]] << 4) + hextable[(int) str[++i]]; |
tmp[pos] = hextable[(int) str[++i]] << 4; |
| |
tmp[pos] += hextable[(int) str[++i]]; |
| |
pos++; |
| } else if (str[i] == '+' && mode & RAWURLENCODE) { |
} else if (str[i] == '+' && mode & RAWURLENCODE) { |
| tmp[pos++] = ' '; |
tmp[pos++] = ' '; |
| } else { |
} else { |
Platon Group <platon@platon.org> http://platon.org/
|
|