fix: only add link when it is valid

This commit is contained in:
ljm42
2022-07-07 16:25:55 -07:00
parent afcacdbe08
commit 1fb58a03bd

View File

@@ -360,9 +360,12 @@ echo "</ul></dd></dl>\n";
_(Self-signed or user-provided certificate)_:
: <?=$cert1File?>
<?if ($cert1URLvalid):?>
<?if ($cert1URLvalid && $var['USE_SSL']=='yes'):?>
_(Certificate URL)_:
: [<?=$cert1URL?>](https://<?=$cert1URL?>:<?=$var['PORTSSL']?>)
<?elseif ($cert1URLvalid):?>
_(Certificate URL)_:
: <?=$cert1URL?>
<?else:?>
_(Certificate URL)_:
: Certificate not valid for <?=$cert1URL?>