Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JRequest.getvar 可以用作 XSS Sanitizer 还是我应该进一步清理输入?
在视图中使用转义功能。
<?php echo $this->escape($value);?>
这将进行 xss 清理。但它在 Jview 上可用
在模型中做$db->quote()以避免恶意代码
$db->quote()