Révision 6b18c66b
Ajouté par Phil Davis il y a plus de 9 ans
usr/local/www/firewall_aliases_edit.php | ||
---|---|---|
287 | 287 |
// This loop expands out that stuff so it can easily be validated. |
288 | 288 |
for($x=0; $x<4999; $x++) { |
289 | 289 |
if($_POST["address{$x}"] <> "") { |
290 |
if ($_POST["detail{$x}"] <> "") |
|
290 |
if ($_POST["detail{$x}"] <> "") {
|
|
291 | 291 |
if ((strpos($_POST["detail{$x}"], "||") === false) && (substr($_POST["detail{$x}"], 0, 1) != "|") && (substr($_POST["detail{$x}"], -1, 1) != "|")) { |
292 | 292 |
$detail_text = $_POST["detail{$x}"]; |
293 | 293 |
} else { |
... | ... | |
299 | 299 |
$desc_fmt_err_found = true; |
300 | 300 |
} |
301 | 301 |
} |
302 |
else { |
|
302 |
} else {
|
|
303 | 303 |
$detail_text = sprintf(gettext("Entry added %s"), date('r')); |
304 | 304 |
} |
305 | 305 |
$address_items = explode(" ", trim($_POST["address{$x}"])); |
Formats disponibles : Unified diff
Clarify bracketing
to minimize risk of a problem when adding code here in the future.