From 3b8aff5a44daa7598f3011266404839c89fd73d2 Mon Sep 17 00:00:00 2001
From: MaximAL <almaximal@ya.ru>
Date: Mon, 26 Aug 2013 20:49:23 +0400
Subject: [PATCH] =?UTF-8?q?Blowfish=20cost=20must=20be=20in=20range=204?=
 =?UTF-8?q?=E2=80=A631,=20not=204=E2=80=A630?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

`generateSalt` parameter validation fix.
---
 framework/yii/helpers/SecurityBase.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/yii/helpers/SecurityBase.php b/framework/yii/helpers/SecurityBase.php
index 05b2682..541b311 100644
--- a/framework/yii/helpers/SecurityBase.php
+++ b/framework/yii/helpers/SecurityBase.php
@@ -262,7 +262,7 @@ class SecurityBase
 	protected static function generateSalt($cost = 13)
 	{
 		$cost = (int)$cost;
-		if ($cost < 4 || $cost > 30) {
+		if ($cost < 4 || $cost > 31) {
 			throw new InvalidParamException('Cost must be between 4 and 31.');
 		}