diff --git a/Sources/Subs.php b/Sources/Subs.php
index f3928cf..bc68c7d 100644
--- a/Sources/Subs.php
+++ b/Sources/Subs.php
@@ -1712,14 +1712,14 @@ function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = arra
array(
'tag' => 'youtube',
'type' => 'unparsed_content',
- 'content' => '',
+ 'content' => '',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
- $tag[\'content\'] = \'http://www.youtube.com/watch?v=$1\';
+ $tag[\'content\'] = \'//www.youtube.com/watch?v=$1\';
$pattern = \'~(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@?&%=+\/\$_.-]*~i\';
if (preg_match($pattern, $data, $matches))
$data = $matches[1];'),
- 'disabled_content' => 'http://www.youtube.com/watch?v=$1',
+ 'disabled_content' => '//www.youtube.com/watch?v=$1',
),
array(
'tag' => 'white',
@@ -4555,4 +4555,4 @@ function remove_integration_function($hook, $function)
$modSettings[$hook] = implode(',', $functions);
}
-?>
\ No newline at end of file
+?>