- _control_error($form, $file_name,
- sprintf($locale->text("More than one control file " .
- "with the tag '%s' exist."),
- $control->{"tag"}))
- if (defined($all_controls{$control->{"tag"}}));
+ if ($control->{"tag"} =~ /[^a-zA-Z0-9_\(\)\-]/) {
+ _control_error($form, $file_name, $locale->text("The 'tag' field must only consist of alphanumeric characters or the carachters - _ ( )"))
+ }