【发布时间】:2013-04-19 00:57:21
【问题描述】:
如何查找字符串是否包含带有 preg_match,... 的“脚本”标签? 如果数据作为“脚本”传递,我试图避免/提交提交
$short_status = $this->params['form']['value'];
$regex = '/^[<script>]$/i';
if(preg_match($regex, $short_status))
{
die();
}
else
{
to process post and save to database,...
提前致谢, 克里斯
【问题讨论】:
标签: php regex preg-match cakephp-1.3