]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Typos
authorNick Porter <nick@portercomputing.co.uk>
Wed, 17 Aug 2022 07:18:26 +0000 (08:18 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 17 Aug 2022 07:18:26 +0000 (08:18 +0100)
raddb/policy.d/cui
raddb/policy.d/time
raddb/policy.d/vendor

index 93f20f141e479391767b269accc7f083f32d6ee6..5636297bcc4e247c1c01e21082362d597f2d459b 100644 (file)
@@ -54,7 +54,7 @@ cui.authorize {
 cui.post-auth {
        if (!&control.Proxy-To-Realm && &Chargeable-User-Identity && !&reply.Chargeable-User-Identity &&
            (&Operator-Name || ('${policy.cui_require_operator_name}' != 'yes')) ) {
-               &reply.Chargeable-User-Identity = %{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{Operator-Name}:-}}}
+               &reply.Chargeable-User-Identity = "%{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{Operator-Name}:-}}}"
        }
 
        #
@@ -77,7 +77,7 @@ cui.post-auth {
 cui-inner.post-auth {
        if (&outer.request.Chargeable-User-Identity && \
            (&outer.request.Operator-Name || ('${policy.cui_require_operator_name}' != 'yes'))) {
-               &reply.Chargeable-User-Identity := %{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{outer.request.Operator-Name}:-}}}
+               &reply.Chargeable-User-Identity := "%{sha1:${policy.cui_hash_key}%{tolower:%{User-Name}%{%{outer.request.Operator-Name}:-}}}"
        }
 }
 
index f9dd0e5078123fced38811796d520aa429b1f805..6ea1a45b36ccc43a3aa9844d98a88984d1e7e326 100644 (file)
@@ -2,14 +2,14 @@
 #
 # Sets Tmp-uint64-0 with the current epoch time in ms
 time_current_ms {
-       &request.Tmp-uint64-0 := %{expr:(%c*1000) + (%C/1000)}
+       &request.Tmp-uint64-0 := "%{expr:(%c*1000) + (%C/1000)}"
 }
 
 # Returns elapsed time in ms since time_current_ms
 #
 # Sets Tmp-uint64-1 with number of milliseconds
 time_elapsed_ms {
-       &request.Tmp-uint64-1 := %{expr:(%c*1000) + (%C/1000) - %{Tmp-uint64-0}}
+       &request.Tmp-uint64-1 := "%{expr:(%c*1000) + (%C/1000) - %{Tmp-uint64-0}}"
 }
 
 # Handles the Expiration attribute
index eb7c68ba79dfab265bd641768c38dc2a05a61887..a04d7fcfe9b95dac1ea6134917d34dad9f7ca1d6 100644 (file)
@@ -9,7 +9,6 @@ broadsoft-decode {
                if ("%{Foreach-Variable-0}" =~ /^([0-9]+)=(.*)$/) {
 #                              &request.Broadsoft-Attr-255 -= "%{Foreach-Variable-0}"
                                "&request.BroadSoft-Attr-%{1}" += "%{2}"
-                       }
                }
        }
 }