# HG changeset patch # User Jim Seymour # Date 1024155783 0 # Node ID 6e876221ec82757342f914e58d1f9d8836a404dd # Parent daf97db3b28e4d52891271c2c7860541424595df [gaim-migrate @ 3327] Can now have reserved chars in IM and proxy passwords. (Ref: bug I.D. [ 555752 ] Proxy pass socks and } character) committer: Tailor Script diff -r daf97db3b28e -r 6e876221ec82 src/gaimrc.c --- a/src/gaimrc.c Sat Jun 15 03:30:33 2002 +0000 +++ b/src/gaimrc.c Sat Jun 15 15:43:03 2002 +0000 @@ -555,10 +555,13 @@ { char *c; int nl = 1, i; - if (u->options & OPT_USR_REM_PASS) - fprintf(f, "\t\tident { %s } { %s }\n", u->username, u->password); - else + + if (u->options & OPT_USR_REM_PASS) { + fprintf(f, "\t\tident { %s } { %s }\n", u->username, (c = escape_text2(u->password))); + free(c); + } else { fprintf(f, "\t\tident { %s } { }\n", u->username); + } fprintf(f, "\t\tuser_info {"); c = u->user_info; while (*c) { @@ -972,12 +975,15 @@ static void gaimrc_write_proxy(FILE *f) { + char *str; + fprintf(f, "proxy {\n"); fprintf(f, "\thost { %s }\n", proxyhost); fprintf(f, "\tport { %d }\n", proxyport); fprintf(f, "\ttype { %d }\n", proxytype); fprintf(f, "\tuser { %s }\n", proxyuser); - fprintf(f, "\tpass { %s }\n", proxypass); + fprintf(f, "\tpass { %s }\n", (str = escape_text2(proxypass))); + free(str); fprintf(f, "}\n"); }