Show
Ignore:
Timestamp:
04/03/09 12:12:38 (4 years ago)
Author:
d0nut
Message:

bbcode changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bbcode.slideshare/files/lib/data/message/bbcode/SlideShareBBCode.class.php

    r78 r845  
    1717         */ 
    1818        public function getParsedTag($openingTag, $content, $closingTag, BBCodeParser $parser) { 
     19                if(!preg_match('/[^\{\}]+/', $content)) return ''; 
     20 
    1921                if ($parser->getOutputType() == 'text/html') { 
    2022                        $new = parse_url($content); 
     
    4143                                        $send = fgets($io, 4096); 
    4244                                        if ($i++> 20) { 
    43                                                 if (preg_match('/<link rel\="video_src" href\="(.+)"\/>/', $send, $hits)) { 
     45 
     46                                                if (preg_match('/<link href\="(.+)" name\="media_presentation"/', $send, $hits)) { 
    4447                                                        $slide_url = $hits[1]; 
    4548                                                        $datacount++; 
     
    7477                } 
    7578                else if ($parser->getOutputType() == 'text/plain') { 
    76                         return $content; 
     79                        return sprintf(' slideshare presentation: %s ', StringUtil::encodeHTML($content)); 
    7780                } 
    7881        }