]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove & from &Tmp
authornolade <nola.aunger@inkbridge.io>
Thu, 13 Mar 2025 18:15:49 +0000 (14:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 15 Mar 2025 13:12:28 +0000 (15:12 +0200)
perl -p -i -e 's/\&Tmp/Tmp/g' $(git grep -lE '&[a-zA-Z0-9]' doc/antora | egrep -v 'raddb|developers|interpreter|assets')

doc/antora/modules/howto/pages/twitter.adoc
doc/antora/modules/reference/pages/type/string/double.adoc
doc/antora/modules/reference/pages/unlang/foreach.adoc

index 4d2629302cdc431afed914a76ae59156799eb9f7..97e281bda66d30f050cd2de2638697efac63350b 100644 (file)
@@ -68,7 +68,7 @@ twitter_sign {
        # Stage 1.0 - Generate the nonce (base64 encoding of 32 bytes of random data) and record the timestamp
        update request {
                Tmp-Octets-0  := "0x%{randstr:hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh}"
-               Tmp-String-0  := "%{base64:&Tmp-Octets-0}"
+               Tmp-String-0  := "%{base64:Tmp-Octets-0}"
                Tmp-Integer-0 := "%l"
        }
 
@@ -100,8 +100,8 @@ twitter_sign {
 
        # Stage 1.4 - Create the oAuth signature
        update request {
-               Tmp-Octets-1 := "0x%{hmacsha1:&Tmp-String-2 &Tmp-String-3}"
-               Tmp-String-4 := "%{base64:&Tmp-Octets-1}"
+               Tmp-Octets-1 := "0x%{hmacsha1:Tmp-String-2 Tmp-String-3}"
+               Tmp-String-4 := "%{base64:Tmp-Octets-1}"
        }
 
        # Stage 2.0 - Adding the authorization header
index 4a4d2f984cb4bf774a6251e6613220335462d3ac..6cb367b3df06ed807eab89519d8c1d1b79088b3a 100644 (file)
@@ -112,7 +112,7 @@ type to `string`.  The value is left alone.
 [source,unlang]
 ----
 "User-Name is %{Tmp-Octets-0}"
-"User-Name is %{(string) &Tmp-Octets-0}"
+"User-Name is %{(string) Tmp-Octets-0}"
 ----
 
 if the `Tmp-Octets-0` attribute has value `0x666f6f` (`foo`)
index 99ed1126a391953d3b4a441690c7d283cef5bb4c..3f8a3acf09bf046d9301166558caab603ddb072b 100644 (file)
@@ -69,7 +69,7 @@ the execution of the loop.
 ----
 Tmp-Integer-0 := { 1, 3, 5, 11 }
 
-foreach self (&Tmp-Integer-0) {
+foreach self (Tmp-Integer-0) {
        self += 19
 }
 ----
@@ -161,7 +161,7 @@ examined, but cannot be changed.  This is a limitation of the current interprete
 .Example of Looping over children of a structural type.
 [source,unlang]
 ----
-foreach thing (&Tmp-TLV-0[*]) {
+foreach thing (Tmp-TLV-0[*]) {
        out += &thing.c
        out += " "
 }