From: Nick Porter Date: Wed, 17 Aug 2022 07:18:26 +0000 (+0100) Subject: Typos X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12bc68f59dc4ad5b81fefbcc679fd049fa5c675;p=thirdparty%2Ffreeradius-server.git Typos --- diff --git a/raddb/policy.d/cui b/raddb/policy.d/cui index 93f20f141e4..5636297bcc4 100644 --- a/raddb/policy.d/cui +++ b/raddb/policy.d/cui @@ -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}:-}}}" } } diff --git a/raddb/policy.d/time b/raddb/policy.d/time index f9dd0e50781..6ea1a45b36c 100644 --- a/raddb/policy.d/time +++ b/raddb/policy.d/time @@ -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 diff --git a/raddb/policy.d/vendor b/raddb/policy.d/vendor index eb7c68ba79d..a04d7fcfe9b 100644 --- a/raddb/policy.d/vendor +++ b/raddb/policy.d/vendor @@ -9,7 +9,6 @@ broadsoft-decode { if ("%{Foreach-Variable-0}" =~ /^([0-9]+)=(.*)$/) { # &request.Broadsoft-Attr-255 -= "%{Foreach-Variable-0}" "&request.BroadSoft-Attr-%{1}" += "%{2}" - } } } }