summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-17 08:03:01 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-17 08:03:01 +1100
commitb2f083be306b604dc213ae35539119de1abc53fb (patch)
treea2fc741802d93de33285b2f9f3ffe1413e593aad /inc
parent8dc9b07d86e19978a22ce6e5e4657a83a5772ef3 (diff)
Fixed bug with some embedded YouTube videos (containing _ or -)
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index 0798cba9..98cf1f73 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -510,7 +510,7 @@
// It's very important that you match the full string (with ^ and $) or things will not work correctly.
$config['embedding'] = Array(
Array(
- '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9-]{10,11})(&.+)?$/i',
+ '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
'<object style="float: left;margin: 10px 20px;" width="%%tb_width%%" height="%%tb_height%%"><param name="movie" value="http://www.youtube.com/v/$2?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$2?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" width="%%tb_width%%" height="%%tb_height%%" allowscriptaccess="always" allowfullscreen="true"></embed></object>'
),
Array(