Changeset af9b92e for functions.c


Ignore:
Timestamp:
Mar 28, 2007, 10:30:15 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
c2c5c77
Parents:
b3a40c7
git-author:
Nelson Elhage <nelhage@mit.edu> (03/28/07 22:29:58)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/28/07 22:30:15)
Message:
Escape aim users' names in smartfilters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r0337203 raf9b92e  
    27452745  owl_filter *f;
    27462746  char *argbuff, *filtname;
     2747  char *escuser;
    27472748
    27482749  /* name for the filter */
     
    27582759  f=owl_malloc(sizeof(owl_filter));
    27592760
     2761  escuser = owl_text_quote(user, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2762
    27602763  argbuff=owl_malloc(1000);
    27612764  sprintf(argbuff,
    2762           "( type ^aim$ and ( ( sender ^%s$ and recipient ^%s$ ) or ( sender ^%s$ and recipient ^%s$ ) ) )",
    2763           user, owl_global_get_aim_screenname(&g), owl_global_get_aim_screenname(&g), user);
     2765          "( type ^aim$ and ( ( sender ^%s$ and recipient ^%s$ ) or ( sender ^%s$ and recipient ^%s$ ) ) )",
     2766          escuser, owl_global_get_aim_screenname(&g), owl_global_get_aim_screenname(&g), escuser);
    27642767
    27652768  owl_filter_init_fromstring(f, filtname, argbuff);
     
    27702773  /* free stuff */
    27712774  owl_free(argbuff);
     2775  owl_free(escuser);
    27722776
    27732777  return(filtname);
Note: See TracChangeset for help on using the changeset viewer.