From ae13bc85329f5ad48117d76bb7cc6ac993da98c7 Mon Sep 17 00:00:00 2001 From: Harvie Date: Wed, 27 Oct 2010 01:03:11 +0200 Subject: [PATCH] html parse - another try --- wwwroot/inc/htmlparse.inc | 3 +-- wwwroot/inc/nodes.inc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wwwroot/inc/htmlparse.inc b/wwwroot/inc/htmlparse.inc index 4767d4e..21b81ce 100644 --- a/wwwroot/inc/htmlparse.inc +++ b/wwwroot/inc/htmlparse.inc @@ -2,9 +2,8 @@ class htmlparse { -public static function htmlparse($data) +function htmlparse($data) { - echo 'fooooook\n'; /* if function finds anything unsafe,it will return FALSE and saves a reason info global variable $htmlparse diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index 2b70536..2eefeb2 100644 --- a/wwwroot/inc/nodes.inc +++ b/wwwroot/inc/nodes.inc @@ -142,7 +142,7 @@ function processContent($node_content) { else { global $db,$htmlparse,$error; - if (!htmlparse::htmlparse($node_content)) { + if (!htmlparse->htmlparse($node_content)) { $error=$htmlparse; return false; } -- 2.30.2