bquast Established Member ★ 20 ★ Impact 5 Aug 1, 2006 624 views 4 replies #1 Well I have an uploader, but I want to be able to scan the file for bad words, ie the mail command and then reject the file. if anyone has a quick solution please let me know, thanks.
Well I have an uploader, but I want to be able to scan the file for bad words, ie the mail command and then reject the file. if anyone has a quick solution please let me know, thanks.
Y yeppers VIP Member VIP ★ 20 ★ Impact 109 Aug 2, 2006 #2 Hey bquast, If you mean you want to avoid th epossibility of a someone using php commands to try to parse commands, then use strip_tags. PHP: // stripping php tags $text="<? mail() ?>"; $newtext=strip_tags($text); echo $newtext; You'll find that that will prevent any php parsing there.
Hey bquast, If you mean you want to avoid th epossibility of a someone using php commands to try to parse commands, then use strip_tags. PHP: // stripping php tags $text="<? mail() ?>"; $newtext=strip_tags($text); echo $newtext; You'll find that that will prevent any php parsing there.
bquast Established Member ★ 20 ★ Impact 5 Aug 2, 2006 #3 yes that should do it thank you BillyConnite
Y yeppers VIP Member VIP ★ 20 ★ Impact 109 Aug 2, 2006 #4 bquast said: yes that should do it thank you BillyConnite Click to expand... No worrys, let us know if you need further help
bquast said: yes that should do it thank you BillyConnite Click to expand... No worrys, let us know if you need further help
bquast Established Member ★ 20 ★ Impact 5 Aug 2, 2006 #5 Well all I want is for it to get rid of the mail() command out of any php file that is uploaded. I tried this it ads that tag into the file....
Well all I want is for it to get rid of the mail() command out of any php file that is uploaded. I tried this it ads that tag into the file....