cast mailbox['quota'] to be integer.

see:  https://github.com/postfixadmin/postfixadmin/issues/342
feature-php-crypt-prefix
David Goodwin 4 years ago
parent 3303f25bcc
commit d540d904db

@ -271,6 +271,11 @@ class MailboxHandler extends PFAHandler {
return true;
}
protected function setmore(array $values) {
if(array_key_exists('quota', $this->values)) {
$this->values['quota'] = (int)$this->values['quota'];
}
}
// Could perhaps also use _validate_local_part($new_value) { .... }
public function set(array $values) {

Loading…
Cancel
Save