![]() |
Good article, AJ. Congrats. :)
|
Excellent article, thanks for writing it.
|
PHP Code:
I've seen some code has 'r' or 'p'? |
They are the some of the super globals:
g = $_GET, p = $_POST, r = $_REQUEST, and also c = $_COOKIE. The above are all valid and alters what content the cleanser sanitizes. More information can be found in the PHP manual: http://us.php.net/variables.predefined |
vB doesn't seem to use htmlspecialchars_uni when displaying the fields it uses htmlspecialchars_uni only during the update/insert of the TYPE_STR fields, so if we do that we are on the safe side right ?
I am asking cause some of the opinions in this thread really messed up with mine :erm: 1. Use the vBulletin Input Cleaner! 2. Use the htmlspecialchars_uni to clean the TYPE_STR vars from the vBulletin Input Cleaner 3. Use the $db->escape_string() to insert/update/replace values If you use again the htmlspecialchars_uni during display or in the inputs things get ugly. The only exception in this rule is the text columns that you might want to use html instead of bbcode. In this case you don't use htmlspecialchars_uni to clean the $vbulletin->GPC['message'] but you use the htmlspecialchars_uni during the edit on the textarea. |
All times are GMT. The time now is 12:30 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:
|