Skip to content

Commit 718fa1b

Browse files
committed
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
1 parent 8bc1146 commit 718fa1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-admin/setup-config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function get_bloginfo() {
212212
case "define('LOGGED_I":
213213
case "define('NONCE_SA":
214214
if ( $secret_keys )
215-
$configFile[$line_num] = str_replace('put your unique phrase here', substr( $secret_keys[$key++], 27, 64 ), $line );
215+
$configFile[$line_num] = str_replace('put your unique phrase here', substr( $secret_keys[$key++], 28, 64 ), $line );
216216
break;
217217
}
218218
}

0 commit comments

Comments
 (0)