// use sprintf

This commit is contained in:
djfm
2013-10-18 13:55:30 +00:00
parent 06b80701c0
commit b5b18b9d2b
+3 -3
View File
@@ -67,9 +67,9 @@ class AdminLoginControllerCore extends AdminController
if ($clientIsMaintenanceOrLocal) if ($clientIsMaintenanceOrLocal)
$this->errors[] = Tools::displayError('SSL is activated. However, your IP is allowed to enter unsecure mode for maintenance or local IP issues.'); $this->errors[] = Tools::displayError('SSL is activated. However, your IP is allowed to enter unsecure mode for maintenance or local IP issues.');
else else
{ {
$warningSslMessage = Tools::displayError('SSL is activated. Please connect using the following link to '); $url = 'https://'.Tools::safeOutput(Tools::getServerName()).Tools::safeOutput($_SERVER['REQUEST_URI']);
$warningSslMessage .= '<a href="https://'.Tools::safeOutput(Tools::getServerName()).Tools::safeOutput($_SERVER['REQUEST_URI']).'">log into secure mode (https://)</a>'; $warningSslMessage = sprintf(Tools::displayError('SSL is activated. Please connect using the following link to <a href="%s">log into secure mode (https://)</a>'), $url);
$this->context->smarty->assign(array('warningSslMessage' => $warningSslMessage)); $this->context->smarty->assign(array('warningSslMessage' => $warningSslMessage));
} }
} }