Project

General

Profile

Actions

Bug #6806

closed

Form validation for DHCP NTP Servers does not allow hyphens

Added by Edward Hurtig about 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Very Low
Assignee:
Category:
Dashboard
Target version:
Start date:
09/21/2016
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3.2
Affected Architecture:

Description

Form validation in the dashboard does not use the proper regex for FQDNs (it doesn't allow hyphens)

<input class="form-control" name="ntp2" id="ntp2" value="1.north-america.pool.ntp.org" pattern="[.a-zA-Z0-9_]+" type="text">

While we're on it, the underscore should probably be removed as underscores are not allowed in hostnames or FQDNs (RFC 1123)

<input class="form-control" name="ntp2" id="ntp2" value="1.north-america.pool.ntp.org" pattern="[.a-zA-Z0-9-]+" type="text">

Files

Actions #1

Updated by Edward Hurtig about 8 years ago

https://github.com/pfsense/pfsense/pull/3151 (CLA was just signed so might not be labeled appropriately yet)

Actions #2

Updated by Anonymous about 8 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by Jim Pingle almost 8 years ago

  • Assignee set to Edward Hurtig
  • Target version set to 2.3.3
Actions #4

Updated by Renato Botelho almost 8 years ago

  • Status changed from Feedback to Resolved

works

Actions

Also available in: Atom PDF