Changeset a5f477c


Ignore:
Timestamp:
Jan 20, 2011, 7:59:38 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
9d4c398
Parents:
c426bc2
git-author:
David Benjamin <davidben@mit.edu> (01/03/11 00:44:21)
git-committer:
David Benjamin <davidben@mit.edu> (01/20/11 19:59:38)
Message:
Reimplement owl_function_zuserfilt with proper quoting

[nelhage@nelhage.com: Use owl_string_appendf_quoted]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rc426bc2 ra5f477c  
    23942394  esclonguser = owl_text_quote(longuser, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    23952395
    2396   argbuff=owl_sprintf("( type ^zephyr$ and filter personal and "
    2397       "( ( direction ^in$ and sender ^%1$s$ ) or ( direction ^out$ and "
    2398       "recipient ^%1$s$ ) ) ) or ( ( class ^login$ ) and ( sender ^%1$s$ ) )",
    2399       esclonguser);
     2396  argbuff=owl_string_build_quoted("( type ^zephyr$ and filter personal and "
     2397      "( ( direction ^in$ and sender ^%q$ ) or ( direction ^out$ and "
     2398      "recipient ^%q$ ) ) ) or ( ( class ^login$ ) and ( sender ^%q$ ) )",
     2399      esclonguser, esclonguser, esclonguser);
    24002400  owl_free(esclonguser);
    24012401
Note: See TracChangeset for help on using the changeset viewer.