Happy New Year
[squirrelmail.git] / plugins / change_password / backend / ldap.php
index 14921615d80889471a3089e93001d5e125431a0d..24baf48a58a4c05955770f9cfab8d9df2121f006 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Change password LDAP backend
  *
- * @copyright 2005-2012 The SquirrelMail Project Team
+ * @copyright 2005-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -646,7 +646,7 @@ function cpw_ldap_password_hash($pass,$crypto,&$msgs,$forced_salt='') {
         break;
     default:
         array_push($msgs,sprintf(_("Unsupported crypto: %s"),
-                                 (is_string($ldap_crypto) ? htmlspecialchars($ldap_crypto) : _("unknown"))));
+                                 (is_string($ldap_crypto) ? sm_encode_html_special_chars($ldap_crypto) : _("unknown"))));
     }
     return $ret;
 }