From: Aki Tuomi Date: Tue, 5 Dec 2017 15:05:27 +0000 (+0200) Subject: lib: test-var-expand - Ensure var_get_key_range_full handles nested ifs correctly X-Git-Tag: 2.2.35~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fe58760161748c25aff2ee9ad0fcb9e733dddbb;p=thirdparty%2Fdovecot%2Fcore.git lib: test-var-expand - Ensure var_get_key_range_full handles nested ifs correctly --- diff --git a/src/lib/test-var-expand.c b/src/lib/test-var-expand.c index 7f6e7444d2..9eb99e372c 100644 --- a/src/lib/test-var-expand.c +++ b/src/lib/test-var-expand.c @@ -88,7 +88,8 @@ static void test_var_get_key_range(void) { "{key}", 1, 3 }, { "5.5Rk", 4, 1 }, { "5.5R{key}", 5, 3 }, - { "{key", 1, 3 } + { "{key", 1, 3 }, + { "{if;%{if;%{value};eq;value;t;f};eq;t;t;f}", 1, 39 }, }; unsigned int i, idx, size;