- Timestamp:
- 12/25/07 18:06:03 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bbcode.deviantart/files/lib/data/message/bbcode/DeviantArtBBCode.class.php
r78 r139 22 22 // id as input 23 23 $id = intval($content); 24 } else if(strpos($content, 'http://') == 0 ){24 } else if(strpos($content, 'http://') == 0 && preg_match('/-(\d+)$/', $content, $hits)){ 25 25 // url as input 26 preg_match('/-(\d+)$/', $content, $hits);27 26 $id = intval($hits[1]); 28 } else if(strpos($content, '<object') == 0){27 } else if(strpos($content, '<object') !== false){ 29 28 // html as input 30 29 preg_match('/^<object width\="(\d+)" height\="(\d+)">.+value\="id\=(\d+)"/', $content, $hits); … … 35 34 } else { 36 35 return; 36 } 37 38 // overwrite width/height from attribute 39 if(isset($openingTag['attributes'][0])) { 40 list($width,$height) = explode("x", $openingTag['attributes'][0]); 37 41 } 38 42
