rATRIJS Posted May 19, 2010 Report Share Posted May 19, 2010 Tak brovzerim viss vienalga. Var rakstiit arii taa: ST4R7 H7mL d0 73x7b0x Pl3453 pU7 s0Me 73x7 h3r3 ( w1th0u7 <bR> pl3453 ) s70p 73x7B0x 3Nd h7ML k tnx Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 19, 2010 Report Share Posted May 19, 2010 LOL rATRIJS =D Quote Link to comment Share on other sites More sharing options...
edi Posted May 19, 2010 Author Report Share Posted May 19, 2010 (edited) slashus nonemu:D un problema isteniba bija funkcija ar kuru es pirms ievietosanas datubaze parbaudiju tekstu ) function check($str) { $str = htmlentities(trim($str), ENT_QUOTES, 'UTF-8'); $str = nl2br($str); $str = strtr($str, array(chr(0) => '', chr(1) => '', chr(2) => '', chr(3) => '', chr(4) => '', chr(5) => '', chr(6) => '', chr(7) => '', chr(8) => '', chr(9) => '', chr(10) => '', chr(11) => '', chr(12) => '', chr(13) => '', chr(14) => '', chr(15) => '', chr(16) => '', chr(17) => '', chr(18) => '', chr(19) => '', chr(20) => '', chr(21) => '', chr(22) => '', chr(23) => '', chr(24) => '', chr(25) => '', chr(26) => '', chr(27) => '', chr(28) => '', chr(29) => '', chr(30) => '', chr(31) => '')); $str = str_replace("\'", "'", $str); $str = str_replace('\\', "\", $str); $str = str_replace("|", "I", $str); $str = str_replace("||", "I", $str); $str = str_replace("/\\\$/", "$", $str); $str = mysql_real_escape_string($str); return $str; } Edited May 19, 2010 by edi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.