
| ||||||||||||||||||||||||||||||||||||||||||||
| QdbS - Quote database System :: Forums :: QdbS Support | |||
|
|||
Modification - BBcode parsing UPDATED v1.1 |
| Author | Post |
| tyteen4a03 |
| ||
![]() Joined: Sat Nov 07 2009, 15:40:14 Posts: 16 | My quote system's users has been requesting for this, so I came up with this. Original script by rothenbergxxx at gmail dot com and ramonvandam AT gmail DOT com, QdbS implementation by tyteen4a03 v1.1: -Changed the time BBcodes in a quote is parsed, which allows editing for later use Install: 1. Create new file called functions.php and put these things inside:
2. Open classes.php, find:
Add below:
3. Open index.php Find:
Replace with:
(There should be around 9 replacements) Currently the supported BBcode are listed in functions.php. [ Edited Wed Jul 28 2010, 19:05:07 ] | ||
| Back to top |
| Jobe |
| ||
![]() ![]() ![]() Joined: Mon Oct 08 2007, 16:54:30 Posts: 35 | You should really still keep the htmlspecialchars() in there somewhere otherwise quote subissions will be able to include HTML and as a result will be XSS vulnerable. For example instead of using: $quote = bb_parse($_POST['quote']); A better example would be: $quote = bb_parse(htmlspecialchars($_POST['quote'])); [ Edited Wed May 26 2010, 11:57:48 ] | ||
| Back to top |
| tyteen4a03 |
| ||
![]() Joined: Sat Nov 07 2009, 15:40:14 Posts: 16 | Yes, thanks :D | ||
| Back to top |
| Moderators: Jobe, Eck |