Commit 1591626e authored by Tim Niemeyer's avatar Tim Niemeyer Committed by Jan-Tarek Butt

lib/core/Validation: \. is valid in interfaces

Like: "eth0.3"
Signed-off-by: default avatarTim Niemeyer <>
parent 1a8c62b7
......@@ -8,7 +8,7 @@ class Validation {
public static function isValidInterfaceName($interfacename) {
$regex = "/^[a-zA-Z0-9\-]*$/";
$regex = "/^[a-zA-Z0-9\-\.]*$/";
return is_string($interfacename) AND strlen($interfacename)<=20 AND preg_match($regex, $interfacename);
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment