mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 08:32:55 +00:00 
			
		
		
		
	Add linebreaks to FSM model
This commit is contained in:
		@@ -2,7 +2,15 @@ from fsm_base import FSMBase
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SQLInjectionFSM(FSMBase):
 | 
					class SQLInjectionFSM(FSMBase):
 | 
				
			||||||
    states = ['start', 'stripped_code', 'sql', 'commented_code', 'sql_with_substitutions', 'sql_output', 'end']
 | 
					    states = [
 | 
				
			||||||
 | 
					        'start',
 | 
				
			||||||
 | 
					        'stripped_code',
 | 
				
			||||||
 | 
					        'sql',
 | 
				
			||||||
 | 
					        'commented_code',
 | 
				
			||||||
 | 
					        'sql_with_substitutions',
 | 
				
			||||||
 | 
					        'sql_output',
 | 
				
			||||||
 | 
					        'end',
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
    transitions = [
 | 
					    transitions = [
 | 
				
			||||||
        {'trigger': 'anchor_webide', 'source': 'start', 'dest': 'stripped_code'},
 | 
					        {'trigger': 'anchor_webide', 'source': 'start', 'dest': 'stripped_code'},
 | 
				
			||||||
        {'trigger': 'anchor_login', 'source': 'stripped_code', 'dest': 'sql'},
 | 
					        {'trigger': 'anchor_login', 'source': 'stripped_code', 'dest': 'sql'},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user