Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
71866c60
Commit
71866c60
authored
Aug 26, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #817 from maximal/patch-1
Blowfish cost must be in range 4…31, not 4…30
parents
c86d5970
3b8aff5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
SecurityBase.php
framework/yii/helpers/SecurityBase.php
+1
-1
No files found.
framework/yii/helpers/SecurityBase.php
View file @
71866c60
...
...
@@ -262,7 +262,7 @@ class SecurityBase
protected
static
function
generateSalt
(
$cost
=
13
)
{
$cost
=
(
int
)
$cost
;
if
(
$cost
<
4
||
$cost
>
3
0
)
{
if
(
$cost
<
4
||
$cost
>
3
1
)
{
throw
new
InvalidParamException
(
'Cost must be between 4 and 31.'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment