foreach ($key_info['signature'] as $sig) {
$notification->push(sprintf(_("PGP Public Key for \"%s (%s)\" was successfully added."), $sig['name'], $sig['email']), 'horde.success');
}
- Util::closeWindowJS('opener.focus();opener.location.href="' . htmlspecialchars(Util::getFormData('reload')) . '";');
+ Util::closeWindowJS('opener.focus();opener.location.href="' . htmlspecialchars(html_entity_decode(Util::getFormData('reload'))) . '";');
}
}
exit;
* successfully - close the import popup window. */
$imp_pgp->addPersonalPrivateKey($privateKey);
$notification->push(_("PGP private key successfully added."), 'horde.success');
- Util::closeWindowJS('opener.focus();opener.location.href="' . htmlspecialchars(Util::getFormData('reload')) . '";');
+ Util::closeWindowJS('opener.focus();opener.location.href="' . htmlspecialchars(html_entity_decode(Util::getFormData('reload'))) . '";');
} else {
/* Invalid private key imported - Redo private key import
* screen. */
$t->setOption('gettext', true);
$t->set('selfurl', Horde::applicationUrl('smime.php'));
$t->set('broken_mp_form', $GLOBALS['browser']->hasQuirk('broken_multipart_form'));
- $t->set('reload', htmlspecialchars(Util::getFormData('reload')));
+ $t->set('reload', htmlspecialchars(html_entity_decode(Util::getFormData('reload'))));
$t->set('target', $target);
$t->set('forminput', Util::formInput());
$t->set('import_public_key', $target == 'process_import_public_key');
function _reloadWindow()
{
- Util::closeWindowJS('opener.focus();opener.location.href="' . htmlspecialchars(Util::getFormData('reload')) . '";');
+ Util::closeWindowJS('opener.focus();opener.location.href="' . htmlspecialchars(html_entity_decode(Util::getFormData('reload'))) . '";');
}
function _textWindowOutput($filename, $msg, $html = false)