forked from leftypol/leftypol
config.php: adjust youtube short referer policy (breaks on ids with a - dash)
This commit is contained in:
parent
856d124c88
commit
6df32997bf
1 changed files with 1 additions and 1 deletions
|
@ -1197,7 +1197,7 @@
|
|||
$config['embedding'] = array(
|
||||
[
|
||||
'/^https?:\/\/(\w+\.)?youtube\.com\/shorts\/([a-zA-Z0-9\-_]{10,11})$/i',
|
||||
'<iframe style="float: left; padding: 0.6em 1em 0.2em 0.2em;" width="240" height="426" frameborder="0" id="ytplayer" src="https://www.youtube.com/embed/$2"></iframe>'
|
||||
'<iframe style="float: left; padding: 0.6em 1em 0.2em 0.2em;" width="240" height="426" frameborder="0" id="ytplayer" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/$2"></iframe>'
|
||||
],
|
||||
array(
|
||||
'/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue