From feffb2de6ca221fe2b54934ec9c157a7923a0af9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 9 Nov 2008 21:57:12 +0000 Subject: [PATCH] generateHash() does now hash with md5() if sql_patches is missing or out-dated --- inc/databases.php | 2 +- inc/functions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index dd23915a94..2b16fbd6b5 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "528"); +define('CURR_SVN_REVISION', "529"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index df47862705..64d80b098b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1981,8 +1981,8 @@ function generateHash ($plainText, $salt = "") { // Is the required extension "sql_patches" there and a salt is not given? if (((EXT_VERSION_IS_OLDER("sql_patches", "0.3.6")) || (!EXT_IS_ACTIVE("sql_patches"))) && (empty($salt))) { - // Extension sql_patches is missing/outdated so we return the plain text - return $plainText; + // Extension sql_patches is missing/outdated so we hash the plain text with MD5 + return md5($plainText); } // END - if // Do we miss an arry element here? -- 2.39.2