summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-01-05 11:44:24 +0400
committerAndrew Dolgov <[email protected]>2012-01-05 11:44:24 +0400
commit31c56e1acbddc91c6300eb05742b71499f207ac6 (patch)
tree6b377710f3e6ccfd16cdae6793adfdc6e9528176
parentda9f393ad27e5e93ec6365586847cd2f58386a33 (diff)
add htmlpurifier youtube filter
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 73c5e39fb..650196830 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);
}