MailCleaner / MailCleaner-Next

Fork of MailCleaner for Debian 12
GNU General Public License v3.0
6 stars 3 forks source link

'print' helper function #46

Open JohnMertz opened 5 months ago

JohnMertz commented 5 months ago

As discovered with recent vulnerability fixes in the current release, it can be clumsy to simply 'print' everything to the WebUI in-line. This requires that variables are properly sanitized every time a new output line is added, which can be very easy to make mistakes with. The best solution is probably to replace every 'print' function with a 'clean_print' helper function and replace all applicable instances of 'print' to use that instead. Then, we will be guaranteed that new output using that helper function should not be vulnerable.

This is a lot of work and is best not to get in the way of creating stable-ish the Beta images.