![]() |
Variable declaration and sanitization!
I have a series of variables I am declaring in a plug-in that fires in global_start.
These variables are all strings. What is the best way to sanitize the variables? Currently, I am declaring them like this: $ccDiscVar = ''; $ccHomeVar = ''; $ccCaleVar = ''; $ccBaseCity = ''; $urlArray = ''; [CODE FOLLOWS] Thanks for any comments. |
If you're getting them from $_POST, $_GET, or $_REQUEST, they should be cleaned using the $vbuletin->GPC class. There's a really good tuitorial in the articles section about this
|
Quote:
You can also clean any value you want, not just GPC (get, post, cookies), using the input cleaner. |
Quote:
Thanks for the reply. I'll investigate the article. Appreciate the help. |
All times are GMT. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|