[bbcode] allow exact code in [pre] tags

empty

emoticons
This commit is contained in:
What.CD 2011-07-06 08:00:07 +00:00
parent 8c7e564b47
commit 5aa0471e66

View File

@ -12,10 +12,13 @@ class TEXT {
':blush:' => 'blush.gif',
':cool:' => 'cool.gif',
':\'(' => 'crying.gif',
':*(' => 'crying.gif',
':crying:' => 'crying.gif',
'>.>' => 'eyesright.gif',
':frown:' => 'frown.gif',
'<3' => 'heart.gif',
':unsure:' => 'hmm.gif',
':\\' => 'hmm.gif',
':whatlove:' => 'ilu.gif',
':lol:' => 'laughing.gif',
':loveflac:' => 'loveflac.gif',
@ -44,7 +47,7 @@ class TEXT {
':creepy:' => 'creepy.gif',
':worried:' => 'worried.gif',
':wtf:' => 'wtf.gif',
':wub:' => 'wub.gif'
':wub:' => 'wub.gif',
);
private $NoImg = 0; // If images should be turned into URLs
@ -373,7 +376,7 @@ function parse($Str) {
$Block = preg_replace('/\[inlinesize\=5\](.*?)\[\/inlinesize\]/i', '===$1===', $Block);
$Block = preg_replace('/\[inlinesize\=7\](.*?)\[\/inlinesize\]/i', '==$1==', $Block);
$Array[$ArrayPos] = array('Type'=>$TagName, 'Val'=>$Block);
$Array[$ArrayPos] = array('Type'=>$TagName, 'Val'=>htmlspecialchars($Block)); // double escape
break;
case 'hide':
$Array[$ArrayPos] = array('Type'=>'hide', 'Attr'=>$Attrib, 'Val'=>$this->parse($Block));