Allow ${Foo-Bar:-%{...}} again release_2_2_0
authorAlan T. DeKok <aland@freeradius.org>
Mon, 10 Sep 2012 11:51:34 +0000 (13:51 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 10 Sep 2012 11:51:34 +0000 (13:51 +0200)
src/main/xlat.c

index 0dc7df1..3dd9dc9 100644 (file)
@@ -1021,6 +1021,7 @@ static int decode_attribute(const char **from, char **to, int freespace,
                }
 
                if (*l == ':') {
+                       if (l[1] == '-') break;
                        if (isdigit(l[1])) break;
 
                        module_name = p; /* start of name */