version 1.2, 2006/12/12 11:37:55 |
version 1.3, 2006/12/12 11:43:50 |
|
|
i = c = 0; |
i = c = 0; |
while (i < len) { |
while (i < len) { |
if (str[i] == '%' && i <= (len - 2)) { |
if (str[i] == '%' && i <= (len - 2)) { |
if (isxdigit(str[i + 1]) && |
if (isxdigit(str[i + 1]) && |
isxdigit(str[i + 2])) { |
isxdigit(str[i + 2])) { |
code[0] = str[i + 1]; |
code[0] = str[i + 1]; |
code[1] = str[i + 2]; |
code[1] = str[i + 2]; |
|
|
*lenp = len; |
*lenp = len; |
|
|
#define allowed_in_string(_x) \ |
#define allowed_in_string(_x) \ |
((isalnum(_x) || isprint(_x)) && \ |
((isalnum(_x) || isprint(_x)) && \ |
(_x != '%' && _x != '\\' && _x != ';' && _x != '|')) |
(_x != '%' && _x != '\\' && _x != ';' && _x != '|')) |
|
|
for (i = 0; i < len; i++) { |
for (i = 0; i < len; i++) { |
if (!allowed_in_string(ptr[i])) { |
if (!allowed_in_string(ptr[i])) { |