Add exact comparison to Debugger::checkSecurityKeys(). Fixes issues

with modifying the value by one digit.  Fixes #298

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Martin Radosta 2010-02-03 07:09:52 -03:00 committed by Mark Story
parent 2adac05dad
commit 447e953bd1

View file

@ -674,7 +674,7 @@ class Debugger extends Object {
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);
}
}