Skip to content
Snippets Groups Projects
Commit a11a3106 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed idn encoded domains on dashlets

parent 43992c09
No related branches found
No related tags found
1 merge request!1087Resolve "Bug. Are not converted names IDN-domains on the home page."
Pipeline #3990 passed
......@@ -21,13 +21,17 @@ class dashlet_mailquota {
$has_mailquota = false;
if(is_array($emails) && !empty($emails)){
foreach($emails as &$email) {
$email['email'] = $app->functions->idn_decode($email['email']);
}
unset($email);
// email username is quoted in quota.lib already, so no htmlentities here to prevent double encoding
//$emails = $app->functions->htmlentities($emails);
$tpl->setloop('mailquota', $emails);
$has_mailquota = isset($emails[0]['used']);
}
$tpl->setVar('has_mailquota', $has_mailquota);
return $tpl->grab();
}
......
......@@ -7,9 +7,9 @@ class dashlet_quota {
//* Loading Template
$app->uses('tpl,quota_lib');
if (!$app->auth->verify_module_permissions('sites')) {
return;
}
if (!$app->auth->verify_module_permissions('sites')) {
return;
}
$tpl = new tpl;
$tpl->newTemplate("dashlets/templates/quota.htm");
......@@ -24,6 +24,11 @@ class dashlet_quota {
$has_quota = false;
if(is_array($sites) && !empty($sites)){
foreach($sites as &$site) {
$site['domain'] = $app->functions->idn_decode($site['domain']);
}
unset($site);
$sites = $app->functions->htmlentities($sites);
$tpl->setloop('quota', $sites);
$has_quota = isset($sites[0]['used']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment