|
|
[stripbackticks]Description
Backticks need to be filtered from user input to prevent SQL injection for example where sortfields can be specified dynamically in a URL. This tag strips them in the same way as Lasso inlines does it, where everything from a backtick and onward will be dropped. 1. ALWAYS use backticks around MySQL table names and field names (i.e. object names) where they will be dynamically specified in an sql string. 2. Strip backticks from user input that will be used as MySQL object names. 3. Most important: Validate and sanitize all user input! All client input should be considered hostile until proven otherwise. Parameters
Sample Usage
Source CodeClick the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
Commentsnone |
||||||||||||||||||||||