fix issue #24 en attendant mieux regex
This commit is contained in:
parent
e982da76b7
commit
d7675c0edb
1 changed files with 2 additions and 2 deletions
|
@ -498,11 +498,11 @@ class VroumVroum_Blog
|
|||
$from['path'] = '';
|
||||
}
|
||||
|
||||
preg_match_all('!(src|href)\s*=\s*[\'"]?([^"\'<>\s]+\.(?:'.$extensions.'))[\'"]?!i', $content, $match, PREG_SET_ORDER);
|
||||
preg_match_all('!(src|href)\s*=\s*[\'"]?([^"\'<>\s]+\.(?:'.$extensions.')[\'"])[\'"]?!i', $content, $match, PREG_SET_ORDER);
|
||||
|
||||
foreach ($match as $m)
|
||||
{
|
||||
$url = parse_url($m[2]);
|
||||
$url = parse_url(substr($m[2], 0, -1));
|
||||
|
||||
if (empty($url['scheme']))
|
||||
$url['scheme'] = $from['scheme'];
|
||||
|
|
Loading…
Reference in a new issue