]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
generateHash() does now hash with md5() if sql_patches is missing or out-dated
[mailer.git] / inc / functions.php
index df47862705423e1d7f52da718881317d3ff6e095..64d80b098bdd0685fb6e3f69cbea2cbb3f3dadb6 100644 (file)
@@ -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))) {
 
        // 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?
        } // END - if
 
        // Do we miss an arry element here?