Changeset fe79f7a7


Ignore:
Timestamp:
2010-12-16T21:02:16Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
191cfb1
Parents:
c5920df
Message:

Hide password information during SASL auth in xmlconsole.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/io.c

    rc5920df rfe79f7a7  
    4747        if( jd->flags & JFLAG_XMLCONSOLE )
    4848        {
    49                 char *msg;
     49                char *msg, *s;
    5050               
    5151                msg = g_strdup_printf( "TX: %s", buf );
     52                /* Don't include auth info in XML logs. */
     53                if( strncmp( msg, "TX: <auth ", 10 ) == 0 && ( s = strchr( msg, '>' ) ) )
     54                {
     55                        s++;
     56                        while( *s && *s != '<' )
     57                                *(s++) = '*';
     58                }
    5259                imcb_buddy_msg( ic, JABBER_XMLCONSOLE_HANDLE, msg, 0, 0 );
    5360                g_free( msg );
Note: See TracChangeset for help on using the changeset viewer.