prakash Posted June 25, 2007 Share Posted June 25, 2007 I previously use mod security to filter data but now need to do it via any regex method have a look at http://www.fashionsansar.com/fas_fusk/tag_search.php?q=<body background=//nukefreezone.net/archives/images/pwnd.jpg><marquee><h1>pwnd by agentsteal The above will generate image in background, a marquee with in the page. I don know how but i need to valid data that user submit as "q=" any help plz Quote Link to comment Share on other sites More sharing options...
effigy Posted June 25, 2007 Share Posted June 25, 2007 strip_tags perhaps? What are you expecting q to be? Quote Link to comment Share on other sites More sharing options...
prakash Posted June 25, 2007 Author Share Posted June 25, 2007 :oI am surprised, the following code just solved what i need <?php $keywords=trim(htmlspecialchars($_GET['q'])); ?> previously the code haven't worked out. 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.