作者JoeHorn (每天都在公司玩OLG)
看板PHP
标题Re: [请益] 我的客户被诈骗集团打电话了..
时间Sat Jun 7 00:23:18 2008
※ 引述《JYHuang (夏天到了,冷不起来了说)》之铭言:
: ※ 引述《reflynet ()》之铭言:
: : 首先可能要先说明一下,我有个购物车是用ecshop的.
^^^^^^^^^^^^^^^^
(1)
: 不知道您的购物车是用何种程式呢?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
这个问题的答案在 (1) ...
这种问题可以用 htmlspecialchars() 解决..
现在的网页程式都会把资料丢进资料库,请视情况,善用这些 PHP 函数:
* addcslashes()
http://www.php.net/addcslashes
* addslashes()
http://www.php.net/addslashes
* htmlspecialchars()
http://www.php.net/htmlspecialchars
当然,要用 RE 硬干我也不反对~ XD
--
▄▆▇▍
▄▆ ▇
▏▎▍▌▋▊▉ φkaishin
▌▄ ▋▊
▄▏▎
▎▏
│
┼── ▄–█▏
─▂
── ▁▁
─▇▍▍▁
▏ ──▂
───◢
── JoeHorn┬┼
□ ▄▄▄ꈠ ▇ ▄ ▂▄█
▎ ▄▄▃▉
▇ ▄ ◢▆◢ ▄▎▄▅ └┼
┼┐▄▄▄▄ ▂ ▅▃◤▃▆◢▂◤▄ ▏▃▂ ▅▃▆◢ ▄█
▄▆▋▄ □
┼┴ ▄ ▄▆─▄▂
▂-◣▄
▂▄-▄▃──▄▌
▄▂
▂─ ▃◤
-▄ ─▊▅◤
─┼
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.173.170.153
1F:推 reflynet:我都用strip_tag啦... ecshop是没想到他没有防到这个 06/07 00:26
2F:→ ybite:再加一个mysql_real_escape_string 06/07 00:32
3F:推 reflynet:RE硬干是这样吗? preg_replace("#<script#is","<|scr", $ 06/07 00:44