From 02cfbbe93bd4ff040e694b0367f0503be29fa07e Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 16 Apr 2007 20:47:23 +0000 Subject: [PATCH] Use wp_hash to create cron's check hash. git-svn-id: http://svn.automattic.com/wordpress/trunk@5274 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-cron.php | 2 +- wp-includes/cron.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-cron.php b/wp-cron.php index 36d7662e3e..eb303f8a14 100644 --- a/wp-cron.php +++ b/wp-cron.php @@ -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() ) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 9908dd09ee..de6e586914 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -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" ); }