#!/usr/bin/perl -w
###############################################################################
-# UseVoteGer 4.12 Wahldurchfuehrung
-# (c) 2001-2014 Marc Langer <uv@marclanger.de>
+# UseVoteGer 4.13 Wahldurchfuehrung
+# (c) 2001-2022 Marc Langer <uv@marclanger.de>
#
# This script package is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by the
}
# correct voting?
- if ($$body =~ /\Q$config{ballotintro}\E\s+(.+?)[^\S\n]*\n([>:|]*?[\t ]+(\S+.+)\s*$)?/m) {
+ if ($$body =~ /\Q$config{ballotintro}\E\s+(.+?)\s*\n([>:|]*?[\t ]+(\S+.+)\s*$)?/m) {
$voting = $1;
- $voting .= " $3" if defined($3);
+ $voting .= " $3" if (defined($3) and $3 !~ /\Q$config{nametext}\E/);
push (@errors, 'WrongVoting') if ($config{votename} !~ /^\s*\Q$voting\E\s*$/);
} else {
push (@errors, 'NoVoting');