Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
SIRNOT! Html Divs causing problems in posts
ok, i was just wondering what is stopping someone writing a div that will blank out the whole screen with white on every posts?
http://mad4gaming.co.uk/comments.php?DiscussionID=10&page=1#Item_1
http://mad4gaming.co.uk/comments.php?DiscussionID=10&page=1#Item_1
0
This discussion has been closed.
Comments
view here http://mad4gaming.co.uk/comments.php?DiscussionID=11&page=1#Item_1 dont worry its not disgusting as it is a clan forum and all and i wouldnt want to look at it either
Would stripping out the style property on tags be easy to do?
Edit: I just thought of links, which use attributes, and would be quite useless without them.
function RemoveEvilAttribs($String) { $P = array( "/(\s+?)(href|src|background|url|dynsrc|lowsrc)\s*=(\W*)(.+?):([^\\3]+?)/ei", "/(\s+?)on([\w]+)\s*=(.+?)/i", "/style\s*=(\W*)(.+)\\1/si" ); $R = array( '$this->RemoveQuoteSlashes(\'\\1\\2=\\3\').(in_array(strtolower(\'\\4\'), $this->AllowedProtocols) ? \'\\4:\' : $this->DefaultProtocol).$this->RemoveQuoteSlashes(\'\\5\')', '\\1On\\2=\\3', '' ); $sReturn = preg_replace($P, $R, $String); return $sReturn; }
(I also notice that the fix hasn't been applied here, so if the implications aren't obvious then I'll happily demonstrate!)