Enforce strict response for data protection clause.
Picked from upstream. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
		
							parent
							
								
									3aca529725
								
							
						
					
					
						commit
						f5828d9fad
					
				
					 3 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								CHANGES
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								CHANGES
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -23,6 +23,9 @@ Version 4.12 (19.01.2014):
 | 
			
		|||
- im Fehlermenue wird nun der Name der Abstimmung als Ueberschrift
 | 
			
		||||
  angezeigt. Ausserdem wurde in UVmenu.pm ein redundanter Code-Abschnitt
 | 
			
		||||
  entfernt
 | 
			
		||||
- BDSG-Klausel muss nun standardmaessig zwingend mit JA beantwortet
 | 
			
		||||
  werden, DAFUER wird nicht mehr akzeptiert. Dies kann in usevote.cfg
 | 
			
		||||
  konfiguriert werden
 | 
			
		||||
 | 
			
		||||
Version 4.11 (25.09.2012):
 | 
			
		||||
- Regular Expression fuer Pruefung des Abstimmungsnamens verbessert.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -281,6 +281,10 @@ enth_stimme = (E|E\s*N\s*T\s*H\s*A\s*L\s*T\s*U\s*N\s*G)
 | 
			
		|||
# Achtung, sollte auch in den Templates im Bestaetigungstext angepasst werden
 | 
			
		||||
ann_stimme = A\s*N\s*N\s*U\s*L\s*L\s*I\s*E\s*R\s*U\s*N\s*G
 | 
			
		||||
 | 
			
		||||
# RegExp fuer Bestaetigung der Datenschutzklause (case-insensitive)
 | 
			
		||||
# Standardmaessig wird nur JA erkannt
 | 
			
		||||
bdsg_confirm = JA
 | 
			
		||||
 | 
			
		||||
# Template files (these files are in the template directory defined above)
 | 
			
		||||
tpl_mailheader = "mailheader"            # generally used mail header
 | 
			
		||||
tpl_bouncelist = "bouncelist"            # used by uvbounce.pl
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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