summaryrefslogtreecommitdiffstats
path: root/articleenhancer
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-22 12:21:14 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-22 12:21:14 +0200
commit785a085a5d7fbf502e9a2e9dce5c7bf899ca84fa (patch)
treeac1fb4352ad10c9d30a84166ab2cb664fdd97719 /articleenhancer
parent19910df42e93ef370048e8d0d2609af71bf46676 (diff)
better specify yt url
Diffstat (limited to 'articleenhancer')
-rw-r--r--articleenhancer/globalarticleenhancer.php2
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);