From d671bbe0361ce4c973fd6951405cb7e970a1c5f8 Mon Sep 17 00:00:00 2001 From: dd32 Date: Wed, 10 Feb 2010 10:59:45 +0000 Subject: [PATCH] Fix off-by-one substr() error. Props blepoxp. See #12159 git-svn-id: http://svn.automattic.com/wordpress/trunk@13042 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; } }