Mercurial > pidgin
comparison src/util.c @ 9934:31fddde685dd
[gaim-migrate @ 10826]
nothing should complain if these stay unescaped, and this will prevent more log breakage
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 02 Sep 2004 04:33:48 +0000 |
parents | b23e70bd1215 |
children | 77a9f7e5516c |
comparison
equal
deleted
inserted
replaced
9933:cee849d17167 | 9934:31fddde685dd |
---|---|
3218 guint i, j = 0; | 3218 guint i, j = 0; |
3219 | 3219 |
3220 g_return_val_if_fail(str != NULL, NULL); | 3220 g_return_val_if_fail(str != NULL, NULL); |
3221 | 3221 |
3222 for (i = 0; i < strlen(str); i++) { | 3222 for (i = 0; i < strlen(str); i++) { |
3223 if (isalnum(str[i]) || str[i] == '@') | 3223 if (isalnum(str[i]) || str[i] == '@' || str[i] == '-' || |
3224 str[i] == '_' || str[i] == '.' || str[i] == '#') | |
3224 buf[j++] = str[i]; | 3225 buf[j++] = str[i]; |
3225 else { | 3226 else { |
3226 sprintf(buf + j, "%%%02x", (unsigned char)str[i]); | 3227 sprintf(buf + j, "%%%02x", (unsigned char)str[i]); |
3227 j += 3; | 3228 j += 3; |
3228 } | 3229 } |