From 718fa1b6e8bbdc9f3a9056a0beac17e9cb6e89cc Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 10 Feb 2010 10:59:45 +0000 Subject: [PATCH] Fix off-by-one substr() error. Props blepoxp. See #12159 git-svn-id: https://develop.svn.wordpress.org/trunk@13042 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/setup-config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 0c68e2fe1e..eba21f38a9 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -212,7 +212,7 @@ switch($step) { case "define('LOGGED_I": case "define('NONCE_SA": if ( $secret_keys ) - $configFile[$line_num] = str_replace('put your unique phrase here', substr( $secret_keys[$key++], 27, 64 ), $line ); + $configFile[$line_num] = str_replace('put your unique phrase here', substr( $secret_keys[$key++], 28, 64 ), $line ); break; } }