Fixes #4497: Bad Request, Unable to verify your data submission

This commit is contained in:
mbman
2014-07-30 09:37:03 +02:00
parent 49ff98938b
commit 94dc27a30e
2 changed files with 2 additions and 1 deletions

View File

@ -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');
}
/**