]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
casr to string
authorAlan T. DeKok <aland@freeradius.org>
Mon, 9 Sep 2024 16:38:29 +0000 (12:38 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 9 Sep 2024 16:38:29 +0000 (12:38 -0400)
arguably this shouldn't be necessary.  We should update the
parser to handle this case.

src/tests/keywords/attr-index-eval

index ca8470313ffc523ea86b016a7b26845c30f33986..de9df853191e75c08d1730473bcb8531e7652227 100644 (file)
@@ -8,7 +8,7 @@ index := 1
 #
 #  Dynamically create an attribute reference
 #
-ref = "Filter-Id[" + index + "]"
+ref = "Filter-Id[" + (string) index + "]"
 
 #
 # Evaluate the attribute as an unlang expression.