Page 2 of 2

Re: 🔒 Secure Access+

Posted: Sat Jul 18, 2026 11:11 am
by ionee
Claude was able to fix the Error 500. The fix is:

Original

Code: Select all

foreach ($this->dbFields as $key => $value) {
    $value = Sanitize::html($value);          // ← htmlspecialchars([]) = TypeError
    settype($value, gettype($this->dbFields[$key]));
    $this->db[$key] = $value;
}
New

Code: Select all

foreach ($this->dbFields as $key => $value) {
    if (is_array($value)) {
        $this->db[$key] = $value; 
    } else {
        $sanitized = Sanitize::html($value); 
        settype($sanitized, gettype($value));
        $this->db[$key] = $sanitized;
    }
}
Use this code at your own risk. I recommend waiting for a fix from the manufacturer.