Commit 4499241f authored by Dries's avatar Dries

- Make sure the HTML filter is applied before any other filter.  Patch by
  Al.
parent 7f2ce4ac
......@@ -476,8 +476,19 @@ function check_input($text) {
function filter($text) {
foreach (module_list() as $name) {
if (module_hook($name, "filter")) {
$modules = module_list();
/*
** Make sure the HTML filters that are part of the node module
** are run first.
*/
if (in_array("node", $modules)) {
$text = module_invoke("node", "filter", $text);
}
foreach ($modules as $name) {
if (module_hook($name, "filter") && $name != "node") {
$text = module_invoke($name, "filter", $text);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment