网站开发与移动开发

博客园 首页 新随笔 管理

2007年11月30日 #

摘要: <?php$str=trim($_REQUEST['content']);$str=str_replace(" ","<br>",$str);functionuh($str){$farr=array("/s+/",//过滤多余的空白"/<(/?)(script|i?frame|style|html|body|title|link|meta|?|%)([^>]*?)>/isU",//过滤<script等可能引入恶意内容或恶意改变显示布局的代码,如果不需要插入f 阅读全文
posted @ 2007-11-30 20:23 txf2004 阅读(191) 评论(0) 推荐(0) 编辑