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 Link to comment https://forums.phpfreaks.com/topic/57073-need-help-regex/ 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? Link to comment https://forums.phpfreaks.com/topic/57073-need-help-regex/#findComment-282008 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. Link to comment https://forums.phpfreaks.com/topic/57073-need-help-regex/#findComment-282035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.