summaryrefslogtreecommitdiff
path: root/actions/pathsadminpanel.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-12-24 16:50:28 -0600
committerZach Copley <zach@status.net>2009-12-24 16:50:28 -0600
commit5f6df8c0c4274e7d900335bba87341f9768e7467 (patch)
tree677d1b86e5e71341092e338def6b416b0263a66c /actions/pathsadminpanel.php
parent4ed969a8accf889cbcf1cdbe2e80f406f3154cbe (diff)
Paths admin panel should not insist on an ssl server being specified,
ever.
Diffstat (limited to 'actions/pathsadminpanel.php')
-rw-r--r--actions/pathsadminpanel.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/actions/pathsadminpanel.php b/actions/pathsadminpanel.php
index c6daa1734..d39c7c449 100644
--- a/actions/pathsadminpanel.php
+++ b/actions/pathsadminpanel.php
@@ -162,12 +162,9 @@ class PathsadminpanelAction extends AdminPanelAction
// Validate SSL setup
- if (in_array($values['site']['ssl'], array('sometimes', 'always'))) {
- if (empty($values['site']['sslserver'])) {
- $this->clientError(_("You must set an SSL server when enabling SSL."));
- }
+ if (mb_strlen($values['site']['sslserver']) > 255) {
+ $this->clientError(_("Invalid SSL server. The maximum length is 255 characters."));
}
-
}
}