From: Alan T. DeKok Date: Tue, 10 Sep 2019 14:33:56 +0000 (-0400) Subject: allow bare %{...} in conditions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8b43d4e7badeb6a8d43642fb0c0ae7df3b2f96;p=thirdparty%2Ffreeradius-server.git allow bare %{...} in conditions which for now are parsed and printed as double-quoted strings. But it makes some things much easier --- diff --git a/src/tests/unit/condition.txt b/src/tests/unit/condition.txt index ecfae7b5d43..faa9c61774e 100644 --- a/src/tests/unit/condition.txt +++ b/src/tests/unit/condition.txt @@ -236,6 +236,12 @@ data true condition 127.0.0.1 == "%{sql: 127.0.0.1}" data 127.0.0.1 == "%{sql: 127.0.0.1}" +# +# Bare %{...} is allowed. +# +condition 127.0.0.1 == %{sql:127.0.0.1} +data 127.0.0.1 == "%{sql:127.0.0.1}" + condition 00:11:22:33:44:55 == "00:11:22:33:44:55" data true