- Timestamp:
- 04/03/09 12:12:38 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bbcode.slideshare/files/lib/data/message/bbcode/SlideShareBBCode.class.php
r78 r845 17 17 */ 18 18 public function getParsedTag($openingTag, $content, $closingTag, BBCodeParser $parser) { 19 if(!preg_match('/[^\{\}]+/', $content)) return ''; 20 19 21 if ($parser->getOutputType() == 'text/html') { 20 22 $new = parse_url($content); … … 41 43 $send = fgets($io, 4096); 42 44 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)) { 44 47 $slide_url = $hits[1]; 45 48 $datacount++; … … 74 77 } 75 78 else if ($parser->getOutputType() == 'text/plain') { 76 return $content;79 return sprintf(' slideshare presentation: %s ', StringUtil::encodeHTML($content)); 77 80 } 78 81 }
