diff options
Diffstat (limited to 'articleenhancer/globalarticleenhancer.php')
-rw-r--r-- | articleenhancer/globalarticleenhancer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/articleenhancer/globalarticleenhancer.php b/articleenhancer/globalarticleenhancer.php index b556a285a..4c01a238c 100644 --- a/articleenhancer/globalarticleenhancer.php +++ b/articleenhancer/globalarticleenhancer.php @@ -49,7 +49,8 @@ class GlobalArticleEnhancer implements ArticleEnhancer { // src needs to be matched against regex to prevent false positives // and because theres no XPath matches function available $src = $element->getAttribute('src'); - $regex = '%^(http://|https://|//)(www\.)?youtube.com/.*\?.*autoplay=1.*%i'; + $regex = '%^(http://|https://|//)(www\.)?youtube.com/' . + '.*\?.*autoplay=1.*%i'; if (preg_match($regex, $src)) { $replaced = str_replace('autoplay=1', 'autoplay=0', $src); |