Enforce strict response for data protection clause.
The - legally binding - data protection clause demands an answer of "JA" to show voter agreement for vote processing. Hence UseVote should only accept "JA" (in upper or lower case), but not "DAFUER" or some other synonyms. * Add bdsg_confirm (regexp) to usevote.cfg * Change check in uvvote.pl accordingly Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
fb9d3eb071
commit
e651da8b3f
3 changed files with 9 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ sub process_vote {
|
|||
# Should read like this: #a [ STIMME ] Text
|
||||
# (Text is configurable in usevote.cfg)
|
||||
unless ($$body =~ /$bdsg_regexp/s &&
|
||||
$$body =~ /#a\W*?\[\W*?$config{ja_stimme}\W*?\]\W*?$bdsg2_regexp/is) {
|
||||
$$body =~ /#a\W*?\[\W*?$config{bdsg_confirm}\W*?\]\W*?$bdsg2_regexp/is) {
|
||||
|
||||
push (@errors, 'InvalidBDSG');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue