mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to properly handle matching comma-separated named ports
This commit is contained in:
@@ -50,7 +50,10 @@ else {
|
||||
|
||||
# Validate ports (1234 or 1234:1245 or 1234:1245,1250,http or 1238,http,https)
|
||||
$in{'port'} =~ s/\s+//g if ($in{'port'});
|
||||
!$in{'port'} || $in{'port'} =~ /^(?!$)(?:[a-zA-Z]+|\d{1,5})(?:(?::\d{1,5})?)(?:,(?:[a-zA-Z]+|\d{1,5})(?:(?::\d{1,5})?)?)*$/gmi || &error($text{'jail_eports'});
|
||||
!$in{'port'} || $in{'port'} =~
|
||||
/^(?!$)(?:[a-zA-Z0-9]+|\d{1,5})(?::\d{1,5})?
|
||||
(?:,\s*(?:[a-zA-Z0-9]+|\d{1,5})(?::\d{1,5})?)*$/gmix ||
|
||||
&error($text{'jail_eports'});
|
||||
|
||||
# Parse and validate actions
|
||||
my @actions;
|
||||
|
||||
Reference in New Issue
Block a user