Changeset d222c44 for filterelement.c


Ignore:
Timestamp:
Jan 2, 2011, 3:35:15 PM (7 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
719119de
Parents:
2bc6ad35
git-author:
David Benjamin <davidben@mit.edu> (12/14/10 23:53:38)
git-committer:
David Benjamin <davidben@mit.edu> (01/02/11 15:35:15)
Message:
Kill owl_getquoting and fix quoting bugs

That function is nonsense. Fix a number of quoting bugs relating to its
use (and lack thereof).

Also quote regex characters in CC narrows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filterelement.c

    ra1d98e4 rd222c44  
    139139static void owl_filterelement_print_re(const owl_filterelement *fe, GString *buf)
    140140{
    141   const char *re, *q;
     141  const char *re;
    142142  g_string_append(buf, fe->field);
    143143  g_string_append(buf, " ");
    144144
    145145  re = owl_regex_get_string(&(fe->re));
    146   q = owl_getquoting(re);
    147   g_string_append(buf, q);
    148   g_string_append(buf, re);
    149   g_string_append(buf, q);
     146  owl_string_append_quoted_arg(buf, re);
    150147}
    151148
     
    153150{
    154151  g_string_append(buf, "filter ");
    155   g_string_append(buf, fe->field);
     152  owl_string_append_quoted_arg(buf, fe->field);
    156153}
    157154
     
    159156{
    160157  g_string_append(buf, "perl ");
    161   g_string_append(buf, fe->field);
     158  owl_string_append_quoted_arg(buf, fe->field);
    162159}
    163160
Note: See TracChangeset for help on using the changeset viewer.