From 31c56e1acbddc91c6300eb05742b71499f207ac6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 5 Jan 2012 11:44:24 +0400 Subject: [PATCH] add htmlpurifier youtube filter --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/functions.php b/include/functions.php index 73c5e39f..65019683 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2574,6 +2574,8 @@ @$config->set('Cache', 'SerializerPath', "../" . CACHE_DIR . "/htmlpurifier"); } + $config->set('Filter.YouTube', true); + $purifier = new HTMLPurifier($config); } -- 2.39.5