X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fchange_password%2Fbackend%2Fpeardb.php;h=0c4c28ca68a0ce4d5b36851eb76e14cdc12b9eaf;hp=9792ccee40f1faf5f7fd0837a6fb616e0cc220e5;hb=HEAD;hpb=30460a05016c7e066ad7b28df7788539e4054a99 diff --git a/plugins/change_password/backend/peardb.php b/plugins/change_password/backend/peardb.php index 9792ccee..129729a5 100644 --- a/plugins/change_password/backend/peardb.php +++ b/plugins/change_password/backend/peardb.php @@ -3,7 +3,7 @@ /** * Change password PearDB backend * - * @copyright 2005-2009 The SquirrelMail Project Team + * @copyright 2005-2022 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -152,16 +152,16 @@ function cpw_peardb_dochange($data) { // connect to database and make sure that table exists $cpw_db = DB::connect($cpw_peardb_dsn, $cpw_peardb_connect_opts); if (PEAR::isError($cpw_db)) { - array_push($msgs,sprintf(_("Connection error: %s"),htmlspecialchars($cpw_db->getMessage()))); + array_push($msgs,sprintf(_("Connection error: %s"),sm_encode_html_special_chars($cpw_db->getMessage()))); if ($cpw_peardb_debug) - array_push($msgs,htmlspecialchars($cpw_db->getuserinfo())); + array_push($msgs,sm_encode_html_special_chars($cpw_db->getuserinfo())); return $msgs; } // get table information $table_info = $cpw_db->tableinfo($cpw_peardb_table); if (PEAR::isError($table_info)) { - array_push($msgs,sprintf(_("Invalid table name: %s"),htmlspecialchars($cpw_peardb_table))); + array_push($msgs,sprintf(_("Invalid table name: %s"),sm_encode_html_special_chars($cpw_peardb_table))); $cpw_db->disconnect(); return $msgs; } @@ -210,7 +210,7 @@ function cpw_peardb_dochange($data) { ''); $cpw_res=$cpw_db->query($query); if (PEAR::isError($cpw_res)) { - array_push($msgs,sprintf(_("Query failed: %s"),htmlspecialchars($cpw_res->getMessage()))); + array_push($msgs,sprintf(_("Query failed: %s"),sm_encode_html_special_chars($cpw_res->getMessage()))); $cpw_db->disconnect(); return $msgs; } @@ -284,7 +284,7 @@ function cpw_peardb_dochange($data) { // check for update error if (PEAR::isError($cpw_res)) { - array_push($msgs,sprintf(_("Unable to set new password: %s"),htmlspecialchars($cpw_res->getMessage()))); + array_push($msgs,sprintf(_("Unable to set new password: %s"),sm_encode_html_special_chars($cpw_res->getMessage()))); } // close database connection @@ -427,7 +427,7 @@ function cpw_peardb_passwd_hash($password,$crypto,&$msgs,$forced_salt='') { $ret = $password; break; default: - array_push($msgs,sprintf(_("Unsupported crypto: %s"),htmlspecialchars($crypto))); + array_push($msgs,sprintf(_("Unsupported crypto: %s"),sm_encode_html_special_chars($crypto))); } return $ret; }