Ticket #612: radius_spaces.diff

File radius_spaces.diff, 0.6 KB (added by steven.kurylo@…, 13 years ago)
  • wifidog/classes/Network.php

     
    607607 
    608608        // Init values 
    609609        $retval = true; 
     610        // Radius fails in non-obvious ways when there are spaces in the constructor. 
     611        if ($this->getAuthenticatorClassName() == 'AuthenticatorRadius'){ 
     612            $value = str_replace(' ','',$value); 
     613        } 
    610614 
    611615        if ($value != $this->getAuthenticatorClassName()) { 
    612616            $value = $db->escapeString($value);