// Small fixes

This commit is contained in:
rGaillard committed 2012-09-11 14:01:50 +00:00
1 parent 9739fb3d59
commit 02f93b09f5
4 files changed
+29 -20

No files matched your search

+14 -4
View File
@@ -498,8 +498,13 @@ class AdminMetaControllerCore extends AdminController
{
if (!Shop::isFeatureActive() && $this->url && $this->url->domain != $value)
{
$this->url->domain = $value;
$this->url->update();
if (Validate::isCleanHtml($value))
{
$this->url->domain = $value;
$this->url->update();
}
else
$this->errors[] = Tools::displayError('Domain is not valid');
}
}
@@ -510,8 +515,13 @@ class AdminMetaControllerCore extends AdminController
{
if (!Shop::isFeatureActive() && $this->url && $this->url->domain_ssl != $value)
{
$this->url->domain_ssl = $value;
$this->url->update();
if (Validate::isCleanHtml($value))
{
$this->url->domain_ssl = $value;
$this->url->update();
}
else
$this->errors[] = Tools::displayError('SSL Domain is not valid');
}
}