Skip to content

Introduced The Out Function, Improved CSRF Protection And More

Compare
Choose a tag to compare
@trongate trongate released this 19 Oct 00:28
· 251 commits to master since this release

Ahoy!

We're thrilled to introduce the latest version of the Trongate Framework, Version 1.3.3046, with exciting new features and enhancements to make your web development experience even better. As you would expect, with Trongate, this release has no breaking changes.

We remain committed to stability and we're satisfied that this release brings value but without breaking your existing apps.

Here are the highlights of this release:

New Functionality - out()
In this release, we are introducing the new out() function, a powerful tool that ensures the safe and secure handling of string output in various contexts. Let's take a closer look at the benefits of this function:

String Escaping: The out() function is designed to escape and format strings for safe inclusion in HTML, XML, JSON, JavaScript, or as attributes. This helps prevent common vulnerabilities like cross-site scripting (XSS) by ensuring that user-generated content is properly sanitized for the intended output format.

Custom Output Formats: You can specify the desired output format as an optional parameter, allowing you to tailor the string output to specific needs. Choose from 'html' (default), 'xml', 'json', 'javascript', or 'attribute' to seamlessly integrate the output into your web applications.

Encoding Flexibility: The function supports different character encodings, with 'UTF-8' as the default. This flexibility ensures that the function can handle diverse character sets and languages.

Exception Handling: If an unsupported output format is provided, the function raises an exception, promoting robust error handling and code reliability.

To see the out() function in action and learn how to integrate it into your Trongate applications, check out our comprehensive tutorial on YouTube: Watch the Tutorial.

CSRF Protection Enhancements
In this release, we've also made significant enhancements to the way CSRF (Cross-Site Request Forgery) protection is handled within the Trongate Framework. Our improved CSRF protection mechanisms ensure that your web applications are safeguarded against malicious attacks. These new measures also introduce significant benchmark improvements.

Finally, we've added a handful of bug fixes - mostly just typos and things of that nature.

As always, we are committed to providing you with a robust and secure framework for your web development projects. We hope you enjoy the new features and improvements introduced in Version 1.3.3046.

Thank you for choosing Trongate Framework for your web development needs. Your feedback and support are invaluable to us. We look forward to seeing the incredible projects you'll create with this latest release.

Happy coding!