mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Fixes #4497: Bad Request, Unable to verify your data submission
This commit is contained in:
@ -40,7 +40,7 @@ class BaseStringHelper
|
||||
*/
|
||||
public static function byteSubstr($string, $start, $length)
|
||||
{
|
||||
return mb_substr($string, $start, $length, '8bit');
|
||||
return mb_substr($string, $start, $length ?: mb_strlen($string), '8bit');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user