![]() |
input TYPE_STR , is it safe enough in this case ?
Hey !
I made a custom profile field , and datamanger was part of the process. so , here is what I did. PHP Code:
PHP Code:
This mod uses bbcode so I need double quotes here,(I missed up every thing when I used TYPE_NOHTML) :p does this looks safe enough to be used in my live forums ? and do I have to escape strings etc , or datamanger would take care of it. Thank you.:) |
The vBulletin input cleaner will escape anything that would normally be harmful to the boards. So yes, that would work fine.
|
It looks to me like clean_gpc with TYPE_STR just trims blanks off the ends and removes null characters. So if you don't want to allow html in that field you may need to do something else.
I guess you could try entering some html and see what happens. |
TYPE_NOHTML will do your job...
|
Quote:
PHP Code:
|
Hi !
with a little test. vbulletin seems to parse bbcode with quotes. [color="Red"]test[/color] or even without them. [color=Red]test[/color] so I made the same function that kh99 provided but, with stripping every single html char so it replaced it with nothing. Thank you so much everyone for your input.:up: |
All times are GMT. The time now is 08:52 AM. |
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:
|