Changeset 74df3bc


Ignore:
Timestamp:
Jan 5, 2011, 1:35:52 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.7
Children:
07235af
Parents:
47efcf5
git-author:
David Benjamin <davidben@mit.edu> (01/03/11 00:44:21)
git-committer:
David Benjamin <davidben@mit.edu> (01/05/11 13:35:52)
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

    r47efcf5 r74df3bc  
    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.