Changeset 1d12db24 for functions.c
- Timestamp:
- Dec 6, 2008, 12:04:44 AM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 3645317
- Parents:
- 9375f8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r9a2ae6c r1d12db24 2615 2615 { 2616 2616 owl_filter *f; 2617 char *argbuff, *longuser, * shortuser, *filtname;2617 char *argbuff, *longuser, *esclonguser, *shortuser, *filtname; 2618 2618 2619 2619 /* stick the local realm on if it's not there */ … … 2632 2632 f=owl_malloc(sizeof(owl_filter)); 2633 2633 2634 esclonguser = owl_text_quote(longuser, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2635 2634 2636 argbuff=owl_sprintf("( type ^zephyr$ and filter personal and " 2635 2637 "( ( direction ^in$ and sender ^%1$s$ ) or ( direction ^out$ and " 2636 2638 "recipient ^%1$s$ ) ) ) or ( ( class ^login$ ) and ( sender ^%1$s$ ) )", 2637 longuser);2639 esclonguser); 2638 2640 2639 2641 owl_filter_init_fromstring(f, filtname, argbuff); … … 2645 2647 owl_free(argbuff); 2646 2648 owl_free(longuser); 2649 owl_free(esclonguser); 2647 2650 owl_free(shortuser); 2648 2651 … … 2695 2698 { 2696 2699 owl_filter *f; 2697 char *argbuff, *filtname ;2700 char *argbuff, *filtname, *esctype; 2698 2701 2699 2702 /* name for the filter */ … … 2708 2711 f=owl_malloc(sizeof(owl_filter)); 2709 2712 2710 argbuff = owl_sprintf("type ^%s$", type); 2713 esctype = owl_text_quote(type, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2714 2715 argbuff = owl_sprintf("type ^%s$", esctype); 2711 2716 2712 2717 owl_filter_init_fromstring(f, filtname, argbuff); … … 2717 2722 /* free stuff */ 2718 2723 owl_free(argbuff); 2724 owl_free(esctype); 2719 2725 2720 2726 return filtname;
Note: See TracChangeset
for help on using the changeset viewer.