mirror of
				https://github.com/Crazyco-xyz/48hr.email.git
				synced 2025-11-04 07:16:32 +01:00 
			
		
		
		
	Add TODO Comment to mail twig
This commit is contained in:
		
							parent
							
								
									01b56d97e9
								
							
						
					
					
						commit
						f367b4caf6
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -18,6 +18,14 @@
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    {% if mail.html %}
 | 
					    {% if mail.html %}
 | 
				
			||||||
    <div>
 | 
					    <div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        {# TODO: 
 | 
				
			||||||
 | 
					            Find a better solution for this monstrocity.
 | 
				
			||||||
 | 
					            Replaces clean html tag with styled one for readabbility. 
 | 
				
			||||||
 | 
					            Realistically, the entire iFrame or even website itself might be vulnerable.
 | 
				
			||||||
 | 
					            srcdoc='html' seems like a very, very unsafe method to me, unfortunately I havent found a better solution.
 | 
				
			||||||
 | 
					        #}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<iframe srcdoc='{{ mail.html|replace({'<html>': '<html style="color: white"'}) }}'></iframe>
 | 
							<iframe srcdoc='{{ mail.html|replace({'<html>': '<html style="color: white"'}) }}'></iframe>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
    {% elseif mail.textAsHtml %}
 | 
					    {% elseif mail.textAsHtml %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue