additional commit for r10958

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10967 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-08-01 09:19:24 +00:00
parent 9d9b6f1c12
commit 578008f085

View file

@ -559,9 +559,24 @@
function _getRssThumbnail($content) function _getRssThumbnail($content)
{ {
@preg_match('@<img[^>]+src *= *(?:"(.+)"|\'(.+)\'|([^ ]+))@', $content, $matches); @preg_match('@<img[^>]+src\s*=\s*(?:"(.+)"|\'(.+)\'|([^\s>(?:/>)]+))@', $content, $matches);
return $matches[1]; if($matches[1])
{
return $matches[1];
}
elseif($matches[2])
{
return $matches[2];
}
elseif($matches[3])
{
return $matches[3];
}
else
{
return NULL;
}
} }
function _getTrackbackItems($args){ function _getTrackbackItems($args){