核心中评论功能的bug |
||||
---|---|---|---|---|
新进会员
注册日期:
2008/5/6 8:01 所属群组:
注册会员
帖子:
5
等级: 1; EXP: 34
HP: 0 / 8 MP: 1 / 88 |
我个人认为评论功能的comment_post.php中有个bug: 例如设置任何人都可以发表评论,在用户登录后对文章评论时,comment_form.php显示‘匿名发表’选项,发表内容时选中该选项,提交后,评论内容中仍然显示用户登录名。我查看源代码,发现comment_post.php中使用了$noname变量(这个是用来表示匿名选项的变量),但是这个变量没有接收$_POST['noname']的值,导致: if (!empty($xoopsModuleConfig['com_anonpost']) && !empty($noname)) { 登录用户即使选中了‘匿名选项’,$noname没有获得提交值而总是空值,因而总是执行else语句。 修改方法: 在获取提交值位置: $com_mode = isset($_POST['com_mode']) ? htmlspecialchars(trim($_POST['com_mode']), ENT_QUOTES) : 'flat'; 加入:$noname = (isset($_POST['noname']) && intval($_POST['noname']) > 0) ? 1 : 0;
2008/6/13 9:36
|
|||
|
回复: 核心中评论功能的bug |
||||
---|---|---|---|---|
Support Team
注册日期:
2007/7/16 17:06 来自 彭城/上海
所属群组:
网站管理员 注册会员 Dev+Hack 资料整理组 等级: 20; EXP: 62
HP: 0 / 490 MP: 166 / 6243 |
不知道 128 行
是不是
2008/6/13 10:21
|
|||
|
回复: 核心中评论功能的bug |
||||
---|---|---|---|---|
Support Team
注册日期:
2007/7/16 17:06 来自 彭城/上海
所属群组:
网站管理员 注册会员 Dev+Hack 资料整理组 等级: 20; EXP: 62
HP: 0 / 490 MP: 166 / 6243 |
刚刚请教了楼主一会好像确实有这个问题!
2008/6/13 11:46
|
|||
|
回复: 核心中评论功能的bug |
||||
---|---|---|---|---|
新进会员
注册日期:
11/1 10:23 来自 China
所属群组:
注册会员
帖子:
8
等级: 1; EXP: 73
HP: 0 / 18 MP: 2 / 3 |
They could feel konfus you in such a way that, why so many people, which are not, thus realms some pairs <b><a href="http://www.uggboots4me.net">UGG Boots</a> </b>on time of the clearance sale, but I don' once to afford could; t. Do you know why? Because I know, where they buy that inexpensive<a href="http://www.cheapwomenuggboots.net"> <b>Cheap UGG Boots</b></a> loadings, I do not believe konfus or surprise over her. I buy always inexpensive <b><a href="http://www.ghdivstylers.net">GHD Straighteners</a></b> loadings of very reliable children uggs a sales distance on-line straight like those people. Everyone has its own hobby, and my hobby is to collect special inexpensive UGG loadings in the world. <b><a href="http://www.eleganceshoppe.net">louis vuitton outlet</a></b> is one of the few marks, which really live up to its picture. If a woman for leather handbags<b> <a href="http://www.stylish-zone.net">Louis vuitton outlet</a></b> Utah buys, she knows, in order to expect quality of of Louis the Vuitton allotters. Their draft agreement caused a differentiating view, completely like a signing odoriferous substance. This leather handbags is of <b><a href="http://www.buyfinebag.net">louis vuitton outlet</a></b> taiga in its slouchy form rather simply, and it has only some folded detailed description at the front side and some gold claytone hardware and pin, which stress its whole.
11/9 20:30
|
|||
|
回复: 核心中评论功能的bug |
||||
---|---|---|---|---|
新进会员
注册日期:
11/1 10:23 来自 China
所属群组:
注册会员
帖子:
8
等级: 1; EXP: 73
HP: 0 / 18 MP: 2 / 3 |
http://www.uggboots4me.net UGG Boots http://www.cheapwomenuggboots.net Cheap UGG Boots http://www.ghdivstylers.net GHD Straightener http://www.eleganceshoppe.net louis vuitton outlet http://www.stylish-zone.net Louis vuitton outlet http://www.buyfinebag.net louis vuitton outlet
11/9 20:31
|
|||
|