diff --git a/lib/Froxlor/Api/Commands/EmailAccounts.php b/lib/Froxlor/Api/Commands/EmailAccounts.php index 2dc235bd..34b9d06b 100644 --- a/lib/Froxlor/Api/Commands/EmailAccounts.php +++ b/lib/Froxlor/Api/Commands/EmailAccounts.php @@ -192,7 +192,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso $replace_arr = array( 'EMAIL' => $email_full, 'USERNAME' => $username, - 'PASSWORD' => $password, + 'PASSWORD' => htmlentities(htmlentities($password)), 'SALUTATION' => \Froxlor\User::getCorrectUserSalutation($customer), 'NAME' => $customer['name'], 'FIRSTNAME' => $customer['firstname'], diff --git a/lib/Froxlor/Api/Commands/Ftps.php b/lib/Froxlor/Api/Commands/Ftps.php index dd33c48f..486a1854 100644 --- a/lib/Froxlor/Api/Commands/Ftps.php +++ b/lib/Froxlor/Api/Commands/Ftps.php @@ -245,7 +245,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit 'COMPANY' => $customer['company'], 'CUSTOMER_NO' => $customer['customernumber'], 'USR_NAME' => $username, - 'USR_PASS' => $password, + 'USR_PASS' => htmlentities(htmlentities($password)), 'USR_PATH' => \Froxlor\FileDir::makeCorrectDir(str_replace($customer['documentroot'], "/", $path)) ); // get template for mail subject diff --git a/lib/Froxlor/Api/Commands/Mysqls.php b/lib/Froxlor/Api/Commands/Mysqls.php index d22cf46a..09224e0c 100644 --- a/lib/Froxlor/Api/Commands/Mysqls.php +++ b/lib/Froxlor/Api/Commands/Mysqls.php @@ -88,13 +88,13 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt // add database info to froxlor $stmt = Database::prepare(" - INSERT INTO `" . TABLE_PANEL_DATABASES . "` - SET - `customerid` = :customerid, - `databasename` = :databasename, - `description` = :description, - `dbserver` = :dbserver - "); + INSERT INTO `" . TABLE_PANEL_DATABASES . "` + SET + `customerid` = :customerid, + `databasename` = :databasename, + `description` = :description, + `dbserver` = :dbserver + "); $params = array( "customerid" => $customer['customerid'], "databasename" => $username, @@ -130,7 +130,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt 'COMPANY' => $userinfo['company'], 'CUSTOMER_NO' => $userinfo['customernumber'], 'DB_NAME' => $username, - 'DB_PASS' => $password, + 'DB_PASS' => htmlentities(htmlentities($password)), 'DB_DESC' => $databasedescription, 'DB_SRV' => $sql_root['host'], 'PMA_URI' => $pma