|
Login
Who's Online
|
Here comes a list of all the methods / functions that are deprecated (and will be removed in the next release). Feel free to add other ones to the list as you encounter them. Text sanitizerAlmost everything is deprecated except:
Now the old ones, with the correct equivalent:
--> $ts->addSlashes($text);
-->$ts->htmlSpecialChars($text);
-->$ts->htmlSpecialChars( $ts->stripSlashesGPC($text) );
-->$ts->displayTarea($text, $html, $smiley, $xcode);
-->$ts->previewTarea($text, $html, $smiley, $xcode); Skalpa Warning, addSlashes, makeTboxData4Save, makeTareaData4Save and oopsAddSlashes will only add slashes to your datas when they are coming from a form or a cookie. This example will not be sanitized : $data="that's good"; $sandata=$myts->addSlashes($data); As a result, you will have an error when you will try to insert a such data in the database because the quote will not be escaped. Hervé |
Search
New Projects
|