Private GIT

Skip to content
Snippets Groups Projects
Commit 18d9aa4a authored by phpipam's avatar phpipam
Browse files

Fixed RADIUS authentication fails on 1.6.0 #3986

parent c3dfb5fe
Branches
No related tags found
No related merge requests found
...@@ -576,7 +576,7 @@ class Radius ...@@ -576,7 +576,7 @@ class Radius
function SetAttribute($type, $value) function SetAttribute($type, $value)
{ {
$attribute_index = -1; $attribute_index = -1;
$attribute_count = count($this->_attributes_to_send); $attribute_count = !is_null($this->_attributes_to_send) ? count($this->_attributes_to_send) : 0;
for ($attributes_loop = 0; $attributes_loop < $attribute_count; $attributes_loop++) for ($attributes_loop = 0; $attributes_loop < $attribute_count; $attributes_loop++)
{ {
if ($type == ord(substr($this->_attributes_to_send[$attributes_loop], 0, 1))) if ($type == ord(substr($this->_attributes_to_send[$attributes_loop], 0, 1)))
...@@ -716,7 +716,8 @@ class Radius ...@@ -716,7 +716,8 @@ class Radius
} }
$attributes_content = ''; $attributes_content = '';
$attribute_count1 = count($this->_attributes_to_send); $attribute_count1 = !is_null($this->_attributes_to_send) ? count($this->_attributes_to_send) : 0;
for ($attributes_loop = 0; $attributes_loop < $attribute_count1; $attributes_loop++) for ($attributes_loop = 0; $attributes_loop < $attribute_count1; $attributes_loop++)
{ {
$attributes_content .= $this->_attributes_to_send[$attributes_loop]; $attributes_content .= $this->_attributes_to_send[$attributes_loop];
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
+ Fixed Update login_form.php for installation inside subdir (#3954); + Fixed Update login_form.php for installation inside subdir (#3954);
+ Fixed php8 constructor fix for radius class (#3985); + Fixed php8 constructor fix for radius class (#3985);
+ Fixed Force mac address update during status update scan (#3791); + Fixed Force mac address update during status update scan (#3791);
+ Fixed RADIUS authentication fails on 1.6.0 (#3986);
Enhancements, changes: Enhancements, changes:
---------------------------- ----------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment