Revision f8dca5a3
Added by Renato Botelho over 12 years ago
etc/inc/shaper.inc | ||
---|---|---|
986 | 986 |
$input_errors[] = gettext("Queue names must be alphanumeric and _ or - only."); |
987 | 987 |
if (!empty($data['name']) && !preg_match("/^[a-zA-Z0-9_-]*$/", $data['name'])) |
988 | 988 |
$input_errors[] = gettext("Queue names must be alphanumeric and _ or - only."); |
989 |
if (!empty($data['default']) && altq_get_default_queue($data['interface']) && ($data['name'] != $this->GetQName())) |
|
989 |
$default = $this->GetDefault(); |
|
990 |
if (!empty($data['default']) && altq_get_default_queue($data['interface']) && empty($default)) |
|
990 | 991 |
$input_errors[] = gettext("Only one default queue per interface is allowed."); |
991 | 992 |
} |
992 | 993 |
|
Also available in: Unified diff
Previous attempt to fix #1995 allow to set more than one default queues, prevent it with this change. It should fix #1995