Patch for vBulletin 3.8.6
Code:
Index: includes/class_sigparser.php
===================================================================
--- includes/class_sigparser.php (revision 4283)
+++ includes/class_sigparser.php (working copy)
@@ -132,6 +132,13 @@
if ($append_custom_tags)
{
$this->append_custom_tags();
+
+ // Disallow YouTube
+ $this->tag_list['no_option']['youtube']['callback'] = 'check_bbcode_youtube';
+ unset($this->tag_list['no_option']['youtube']['html']);
+
+ $this->tag_list['option']['youtube']['callback'] = 'check_bbcode_youtube';
+ unset($this->tag_list['option']['youtube']['html']);
}
}
@@ -155,6 +162,13 @@
return $this->do_parse($text, $dohtml, $dosmilies, $dobbcode, $dobbimagecode, false, false);
}
+
+ // Disallow YouTube
+ function check_bbcode_youtube($text)
+ {
+ $this->errors["$tag"] = 'tag_not_allowed';
+ return $text;
+ }
/**
* BB code callback allowed check