[Beta] Java in post fix!
Posted: Fri Oct 06, 2006 10:32 am
It's simply is not a good idea to allow java scripts in post (and sigs), it will leave you open to hacking and can screw up your posts...
Fix:
This will replace the java tags with this message (Java script is not allowed in posts) in the post and also disable the script...
Mike
PS if you install this fix post your results here, needs testing before inclusion with 1.4.1 Beta...
Fix:
- Code: Select all
Open]*Java script is not allowed in posts[/color]',$lookfor,$message); $lookfor = "</script>"; $message = str_replace('[color=red]Java script is not allowed in posts*[/color]',$lookfor,$message); Open]*Java script is not allowed in posts[/color]',$message); $lookfor = "</script>"; $message = str_replace($lookfor,'[color=red]Java script is not allowed in posts*[/color]',$message);
This will replace the java tags with this message (Java script is not allowed in posts) in the post and also disable the script...
Mike
PS if you install this fix post your results here, needs testing before inclusion with 1.4.1 Beta...