Skip to content
Permalink
Browse files

Allow _POST value to be 0

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 12, 2019
1 parent 7b6e85c commit 1f9c73700bcc38521f6f533453939b9039b0162a
Showing with 3 additions and 1 deletion.
  1. +3 −1 config/index.php
@@ -132,7 +132,9 @@
$output .= '$USER14$=' . (sanitize($_POST['pushover_userkey']) ?: 'NULL') . PHP_EOL;
# TLS for SMTP enabled (1) or not (0), default 1
$output .= '$USER15$=' . (sanitize($_POST['smtp_tls']) ?: '1') . PHP_EOL;
if (empty($_POST['smtp_tls'])) $smtp_tls = 0; // if 0 selected, _POST value will be empty
$smtp_tls = sanitize($_POST['smtp_tls']);
$output .= '$USER15$=' . ($smtp_tls ?: '1') . PHP_EOL;
# IPMI credentials
$output .= '$USER16$=' . (sanitize($_POST['ipmi_user']) ?: 'NULL') . PHP_EOL;

0 comments on commit 1f9c737

Please sign in to comment.
You can’t perform that action at this time.