Skip to content

Commit f6da11c

Browse files
committed
Thanks to Shamil Yakupov for validation improvement
1 parent f375b38 commit f6da11c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

web/add/cron/index.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
if (!empty($_POST['ok'])) {
1616
// Check input
17-
if ((!isset($_POST['v_min'])) || ($_POST['v_min'] != '')) $errors[] = __('minute');
18-
if ((!isset($_POST['v_hour'])) || ($_POST['v_hour'] != '')) $errors[] = __('hour');
19-
if ((!isset($_POST['v_day'])) || ($_POST['v_day'] != '')) $errors[] = __('day');
20-
if ((!isset($_POST['v_month'])) || ($_POST['v_month'] != '')) $errors[] = __('month');
21-
if ((!isset($_POST['v_wday'])) || ($_POST['v_wday'] != '')) $errors[] = __('day of week');
22-
if ((!isset($_POST['v_cmd'])) || ($_POST['v_cmd'] != '')) $errors[] = __('cmd');
17+
if ((!isset($_POST['v_min'])) || ($_POST['v_min'] == '')) $errors[] = __('minute');
18+
if ((!isset($_POST['v_hour'])) || ($_POST['v_hour'] == '')) $errors[] = __('hour');
19+
if ((!isset($_POST['v_day'])) || ($_POST['v_day'] == '')) $errors[] = __('day');
20+
if ((!isset($_POST['v_month'])) || ($_POST['v_month'] == '')) $errors[] = __('month');
21+
if ((!isset($_POST['v_wday'])) || ($_POST['v_wday'] == '')) $errors[] = __('day of week');
22+
if ((!isset($_POST['v_cmd'])) || ($_POST['v_cmd'] == '')) $errors[] = __('cmd');
2323

2424
// Protect input
2525
$v_min = escapeshellarg($_POST['v_min']);

0 commit comments

Comments
 (0)