Use wp_hash to create cron's check hash.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-04-16 20:47:23 +00:00
parent c2e45c1e08
commit 02cfbbe93b
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"
);
}