mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix matching of partial attribute names #2537
This commit is contained in:
parent
f613841a1b
commit
ba74b47a29
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ class TemplateParser_v2
|
|||
$basepath = \RX_BASEURL . $this->template->relative_dirname;
|
||||
|
||||
// Convert all src and srcset attributes.
|
||||
$regexp = '#(<(?:img|audio|video|script|input|source|link)\s[^>]*)(src|srcset|poster)="([^"]+)"#';
|
||||
$regexp = '#(<(?:img|audio|video|script|input|source|link)\s[^>]*)(?<=\s)(src|srcset|poster)="([^"]+)"#';
|
||||
$content = preg_replace_callback($regexp, function($match) use ($basepath) {
|
||||
if ($match[2] !== 'srcset')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue