changeset 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 cee849d17167
children bb0c04ebcdef
files src/util.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Thu Sep 02 03:46:53 2004 +0000
+++ b/src/util.c	Thu Sep 02 04:33:48 2004 +0000
@@ -3220,7 +3220,8 @@
 	g_return_val_if_fail(str != NULL, NULL);
 
 	for (i = 0; i < strlen(str); i++) {
-		if (isalnum(str[i]) || str[i] == '@')
+		if (isalnum(str[i]) || str[i] == '@' || str[i] == '-' ||
+				str[i] == '_' || str[i] == '.' || str[i] == '#')
 			buf[j++] = str[i];
 		else {
 			sprintf(buf + j, "%%%02x", (unsigned char)str[i]);