Skip to content

Commit

Permalink
Add exact comparison to Debugger::checkSecurityKeys(). Fixes issues
Browse files Browse the repository at this point in the history
with modifying the value by one digit.  Fixes #298

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
mradosta authored and markstory committed Feb 4, 2010
1 parent 2adac05 commit 447e953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/debugger.php
Expand Up @@ -674,7 +674,7 @@ function checkSecurityKeys() {
trigger_error(__('Please change the value of \'Security.salt\' in app/config/core.php to a salt value specific to your application', true), E_USER_NOTICE);
}

if (Configure::read('Security.cipherSeed') == '76859309657453542496749683645') {
if (Configure::read('Security.cipherSeed') === '76859309657453542496749683645') {
trigger_error(__('Please change the value of \'Security.cipherSeed\' in app/config/core.php to a numeric (digits only) seed value specific to your application', true), E_USER_NOTICE);
}
}
Expand Down

0 comments on commit 447e953

Please sign in to comment.