In MyTest.java you can find some examples of how to write to the Zimbra log files. The most common ones are: ZimbraLog.extensions.info(“this is an info message that will show up in /opt/zimbra/log/mailbox.log”); ZimbraLog.extensions.error(“this is an error message that will show up in /opt/zimbra/log/mailbox.log”); To see the logging in action run a tail on the log […]
Tag Archives | developer
How to use DOMPurify in your Zimlet for XSS sanitizing
Cross-Site Scripting (XSS) attacks are a type of injection attack, in which malicious scripts are injected into otherwise benign and trusted websites. In case you are developing a Zimlet you should not trust any form of user input. If you integrate 3rd party services via your Zimlet, you probably also want to sanitize any data […]