diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 12:21:14 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 12:21:14 +0200 |
commit | 785a085a5d7fbf502e9a2e9dce5c7bf899ca84fa (patch) | |
tree | ac1fb4352ad10c9d30a84166ab2cb664fdd97719 /articleenhancer/globalarticleenhancer.php | |
parent | 19910df42e93ef370048e8d0d2609af71bf46676 (diff) |
better specify yt url
Diffstat (limited to 'articleenhancer/globalarticleenhancer.php')
-rw-r--r-- | articleenhancer/globalarticleenhancer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/articleenhancer/globalarticleenhancer.php b/articleenhancer/globalarticleenhancer.php index cfefb882b..512d51697 100644 --- a/articleenhancer/globalarticleenhancer.php +++ b/articleenhancer/globalarticleenhancer.php @@ -38,7 +38,7 @@ 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); |