Paths admin panel should not insist on an ssl server being specified,
ever.
This commit is contained in:
parent
4ed969a8ac
commit
5f6df8c0c4
@ -162,12 +162,9 @@ class PathsadminpanelAction extends AdminPanelAction
|
|||||||
|
|
||||||
// Validate SSL setup
|
// Validate SSL setup
|
||||||
|
|
||||||
if (in_array($values['site']['ssl'], array('sometimes', 'always'))) {
|
if (mb_strlen($values['site']['sslserver']) > 255) {
|
||||||
if (empty($values['site']['sslserver'])) {
|
$this->clientError(_("Invalid SSL server. The maximum length is 255 characters."));
|
||||||
$this->clientError(_("You must set an SSL server when enabling SSL."));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -191,10 +191,6 @@ class SiteadminpanelAction extends AdminPanelAction
|
|||||||
$this->clientError(_("Snapshot frequency must be a number."));
|
$this->clientError(_("Snapshot frequency must be a number."));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mb_strlen($values['site']['sslserver']) > 255) {
|
|
||||||
$this->clientError(_("Invalid SSL server. The maximum length is 255 characters."));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate text limit
|
// Validate text limit
|
||||||
|
|
||||||
if (!Validate::number($values['site']['textlimit'], array('min' => 140))) {
|
if (!Validate::number($values['site']['textlimit'], array('min' => 140))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user