From c411661a8e8f9f9eb014a24954b9be2fcaaece18 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 31 Jul 2016 11:27:20 +0200 Subject: Allow URLs for TFTP Server (Bug #6634) The setPattern() thing ain't usable for this and just causes regressions. --- src/usr/local/www/services_dhcp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php index bda57b7..d892cab 100644 --- a/src/usr/local/www/services_dhcp.php +++ b/src/usr/local/www/services_dhcp.php @@ -1084,11 +1084,11 @@ $section->addInput(new Form_StaticText( $btnadv )); -$section->addInput(new Form_IpAddress( +$section->addInput(new Form_Input( 'tftp', 'TFTP Server', $pconfig['tftp'] -))->setHelp('Leave blank to disable. Enter a full hostname or IP for the TFTP server.')->setPattern('[.a-zA-Z0-9_-]+'); +))->setHelp('Leave blank to disable. Enter a valid IP address, hostname or URL for the TFTP server.'); // Advanced LDAP $btnadv = new Form_Button( -- cgit v1.1