Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / inc / htmlparse.inc
index e54c584f7886a9f0b536391d8b2640b7a6a8aa65..6371046e8279a8e9280536894657473f3faee9c2 100644 (file)
@@ -18,6 +18,7 @@ function htmlparse($data)
                      'br/'=>1, // fix later ;)
                      'li'=>1,
                      'hr'=>1,
+                     '/tr'=>1,
                      'img'=>1,
                      'p'=>1
                      );
@@ -38,7 +39,8 @@ function htmlparse($data)
                     'ol'=>1,
                     'li'=>1,
                     'tt'=>1,
-                    'code'=>1,
+                    'address'=>1,
+                   'code'=>1,
                     'small'=>1,
                     'big'=>1,
                     'caption'=>1,
@@ -124,10 +126,17 @@ function htmlparse($data)
                $htmlparse = 'JavaScript je na hovno!';
                //$htmlparse = 'JavaScript sux!';
                return 0;
+            elseif(Ereg('/on',' '.$attrib[1])): // temporary solution for pernament problem...and it isn\14 suicide
+               $htmlparse = 'z bezpecnostnych dovodov nieje povolene vkladat do tagov retazec "/on"';
+               return 0;
+
+
+/*
             elseif(Ereg(' style',' '.$attrib[1])): // styles are forbidden - don\14 look at me THAT way ;)
                $htmlparse = 'Ten "style" se mi tam nezda!';
                //$htmlparse = '"styles" are forbidden!';
                return 0;
+*/
             elseif(Ereg('://',' '.$attrib[1]) && $attrib[0] != "img" && $attrib[0] != "a"): // adresses in attributes (except A and IMG tags) are forbidden
                $htmlparse = 'Neco se mi tam nelibi! To je hlaska HTML validace - nejedna se o nejakou cenzuru ;)';
                //$htmlparse = 'Forbidden usage of adresses in tags!';
This page took 0.098634 seconds and 4 git commands to generate.