mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Extra bad html tag
							parent
							
								
									1fa22a6777
								
							
						
					
					
						commit
						b0c1cb5712
					
				
							
								
								
									
										2
									
								
								inbox.py
								
								
								
								
							
							
						
						
									
										2
									
								
								inbox.py
								
								
								
								
							| 
						 | 
				
			
			@ -1119,7 +1119,7 @@ def validPostContent(messageJson: {},maxMentions: int) -> bool:
 | 
			
		|||
    if not messageJson['object'].get('content'):
 | 
			
		||||
        return True
 | 
			
		||||
    # check for bad html
 | 
			
		||||
    invalidStrings=['<script>','<style>','</html>','</body>','<br>','<hr>']    
 | 
			
		||||
    invalidStrings=['<script>','<canvas>','<style>','</html>','</body>','<br>','<hr>']    
 | 
			
		||||
    for badStr in invalidStrings:
 | 
			
		||||
        if badStr in messageJson['object']['content']:
 | 
			
		||||
            if messageJson['object'].get('id'):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue