tbrehm
2012-12-05 637939b78354297d90cad907bf748b7440d6dbce
Fixed: FS#2568 - ISPConfig 3.0.5 mailbox Speicher Error
3 files modified
8 ■■■■ changed files
interface/lib/classes/functions.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/tform.inc.php 4 ●●●● patch | view | raw | blame | history
interface/web/mail/form/mail_user.tform.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/functions.inc.php
@@ -303,7 +303,7 @@
    }
    public function intval($string, $force_numeric = false) {
        if(intval($string) == 2147483647) {
        if(intval($string) == 2147483647 || ($string > 0 && intval($string) < 0)) {
            if($force_numeric == true) return floatval($string);
            elseif(preg_match('/^([-]?)[0]*([1-9][0-9]*)([^0-9].*)*$/', $string, $match)) return $match[1].$match[2];
            else return 0;
interface/lib/classes/tform.inc.php
@@ -687,7 +687,7 @@
                                        }
                                break;
                                case 'INTEGER':
                                        $new_record[$key] = (isset($record[$key]))?$app->functions->intval($record[$key]):0;
                                        $new_record[$key] = (isset($record[$key]))?$app->functions->intval($record[$key]):0;
                                        //if($new_record[$key] != $record[$key]) $new_record[$key] = $field['default'];
                                        //if($key == 'refresh') die($record[$key]);
                                break;
@@ -856,7 +856,7 @@
                                    }
                                break;
                                case 'ISINT':
                                    if(function_exists('filter_var')) {
                                    if(function_exists('filter_var') && $field_value < 2147483647) {
                                        if($field_value != '' && filter_var($field_value, FILTER_VALIDATE_INT) === false) {
                                            $errmsg = $validator['errmsg'];
                                            if(isset($this->wordbook[$errmsg])) {
interface/web/mail/form/mail_user.tform.php
@@ -134,7 +134,7 @@
            'searchable' => 2
        ),
        'quota' => array (
            'datatype'    => 'INTEGER',
            'datatype'    => 'VARCHAR',
            'formtype'    => 'TEXT',
            'validators'    => array (     0 => array (    'type'    => 'ISINT',
                                                        'errmsg'=> 'quota_error_isint'),