Skip to content

Commit 34a3f8a

Browse files
committed
Fixed: FS#850 - Unlimitred mailbox quota when value = 0
1 parent 7467f9f commit 34a3f8a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

interface/web/mail/form/mail_user.tform.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
'formtype' => 'TEXT',
9494
'validators' => array ( 0 => array ( 'type' => 'ISINT',
9595
'errmsg'=> 'quota_error_isint'),
96+
1 => array ( 'type' => 'REGEX',
97+
'regex' => '/^(-1)|([1-9][0-9]*)$/',
98+
'errmsg'=> 'quota_error_value'),
9699
),
97100
'default' => '0',
98101
'value' => '',

interface/web/mail/lib/lang/en_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ $wb["welcome_mail_message"] = "Welcome to your new email account. Your webmaster
2828
$wb["disableimap_txt"] = 'Disable IMAP';
2929
$wb["disablepop3_txt"] = 'Disable POP3';
3030
$wb["duplicate_alias_or_forward_txt"] = 'There is already an alias or forwrd with this email address.';
31+
$wb["quota_error_value"] = 'Invalid quota value. Allowed values are: -1 for unlimited or numbers > 1';
3132
?>

0 commit comments

Comments
 (0)