Revision fedf01cd
Added by Jim Pingle over 4 years ago
src/usr/local/www/interfaces.php | ||
---|---|---|
575 | 575 |
} |
576 | 576 |
|
577 | 577 |
if ((strlen(trim($_POST['descr'])) > 25) && ((substr($realifname, 0, 4) == 'ovpn') || |
578 |
(substr($realifname, 0, 5) == 'ipsec'))) { |
|
579 |
$input_errors[] = gettext("The OpenVPN and VTI interface description must be less than 26 characters long.");
|
|
578 |
(substr($realifname, 0, 5) == 'ipsec') || (substr($realifname, 0, 2) == 'wg'))) {
|
|
579 |
$input_errors[] = gettext("VTI, WireGuard, and OpenVPN interface descriptions must be less than 26 characters long.");
|
|
580 | 580 |
} |
581 | 581 |
|
582 | 582 |
if ((strlen(trim($_POST['descr'])) > 22) && ((substr($realifname, 0, 3) == 'gif') || |
Also available in: Unified diff
Fix length check for WireGuard interface descriptions