mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
...
This commit is contained in:
@ -82,7 +82,7 @@ class StringValidator extends Validator
|
||||
}
|
||||
|
||||
if (function_exists('mb_strlen') && $this->encoding !== false) {
|
||||
$length = mb_strlen($value, $this->encoding ? $this->encoding : Yii::app()->charset);
|
||||
$length = mb_strlen($value, $this->encoding ? $this->encoding : \Yii::$application->charset);
|
||||
} else {
|
||||
$length = strlen($value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user