summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_certmanager.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-01-18 09:10:36 +0100
committerSeth Mos <seth.mos@dds.nl>2011-01-18 09:10:36 +0100
commit1f74cd2d101f032472a4968a10b64161652d6c1f (patch)
treed692513243aaed6003264f0b877b50cbeb69328b /usr/local/www/system_certmanager.php
parentc9d174dfc0a29c59ae35f43a470460f36f695b61 (diff)
parent96e889fc1e938187dd18238d80e3163e1aca3006 (diff)
downloadpfsense-1f74cd2d101f032472a4968a10b64161652d6c1f.zip
pfsense-1f74cd2d101f032472a4968a10b64161652d6c1f.tar.gz
Merge remote branch 'upstream/master'
Conflicts: etc/inc/interfaces.inc etc/inc/system.inc
Diffstat (limited to 'usr/local/www/system_certmanager.php')
-rw-r--r--usr/local/www/system_certmanager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php
index 36a11bb..0113461 100644
--- a/usr/local/www/system_certmanager.php
+++ b/usr/local/www/system_certmanager.php
@@ -162,6 +162,8 @@ if ($_POST) {
gettext("Descriptive name"),
gettext("Certificate data"),
gettext("Key data"));
+ if ($_POST['cert'] && (!strstr($_POST['cert'], "BEGIN CERTIFICATE") || !strstr($_POST['cert'], "END CERTIFICATE")))
+ $input_errors[] = gettext("This certificate does not appear to be valid.");
}
if ($pconfig['method'] == "internal") {
OpenPOWER on IntegriCloud