Use wp_hash to create cron's check hash.

git-svn-id: https://develop.svn.wordpress.org/trunk@5274 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-04-16 20:47:23 +00:00
parent d0f5497976
commit 66d8f40564
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ignore_user_abort(true);
define('DOING_CRON', TRUE);
require_once('wp-config.php');
if ( $_GET['check'] != md5(DB_PASS . '187425') )
if ( $_GET['check'] != wp_hash('187425') )
exit;
if ( get_option('doing_cron') > time() )

View File

@ -97,7 +97,7 @@ function spawn_cron() {
if ( $argyle )
fputs( $argyle,
"GET {$parts['path']}?check=" . md5(DB_PASS . '187425') . " HTTP/1.0\r\n"
"GET {$parts['path']}?check=" . wp_hash('187425') . " HTTP/1.0\r\n"
. "Host: {$_SERVER['HTTP_HOST']}\r\n\r\n"
);
}