gaim/gaim

Fix [ 852309 ] Buddy Pounce special character bug
oldstatus
2005-02-03, Stu Tomlinson
5ea5e9d32d33
Parents 447c7f966ba0
Children 86b1bad8bc03
Fix [ 852309 ] Buddy Pounce special character bug

We weren't escaping text when writing out pounce.xml. HEAD already has this
working correctly thanks to Mark's unification of how we save our xml files.
  • +4 -1
    src/pounce.c
  • --- a/src/pounce.c Thu Feb 03 10:34:35 2005 -0500
    +++ b/src/pounce.c Thu Feb 03 14:44:44 2005 -0500
    @@ -755,13 +755,16 @@
    write_action_parameter(gpointer key, gpointer value, gpointer user_data)
    {
    const char *name, *param_value;
    + char *escaped;
    FILE *fp;
    param_value = (const char *)value;
    name = (const char *)key;
    fp = (FILE *)user_data;
    - fprintf(fp, " <param name='%s'>%s</param>\n", name, param_value);
    + escaped = g_markup_escape_text(param_value, -1);
    + fprintf(fp, " <param name='%s'>%s</param>\n", name, escaped);
    + g_free(escaped);
    }
    static void