From 66d8f4056492c36bf886b0a740f80ff96f441fee Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 16 Apr 2007 20:47:23 +0000 Subject: [PATCH] Use wp_hash to create cron's check hash. git-svn-id: https://develop.svn.wordpress.org/trunk@5274 602fd350-edb4-49c9-b593-d223f7449a82 --- 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" ); }