[geeklog-cvs] geeklog-1.3/public_html comment.php,1.47,1.48
dhaun at geeklog.net
dhaun at geeklog.net
Fri Dec 5 08:32:46 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv14838
Modified Files:
comment.php
Log Message:
Accept non-numerical comment IDs (cid).
Index: comment.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** comment.php 16 Nov 2003 18:22:33 -0000 1.47
--- comment.php 5 Dec 2003 13:32:43 -0000 1.48
***************
*** 394,398 ****
break;
case $LANG01[28]: // Delete
! $display .= deletecomment (COM_applyFilter ($cid, true),
COM_applyFilter ($sid), COM_applyFilter ($type));
break;
--- 394,398 ----
break;
case $LANG01[28]: // Delete
! $display .= deletecomment (COM_applyFilter ($cid),
COM_applyFilter ($sid), COM_applyFilter ($type));
break;
***************
*** 453,461 ****
// This could still be a plugin wanting comments
if (isset ($HTTP_POST_VARS['cid'])) {
! $cid = COM_applyFilter ($HTTP_POST_VARS['cid'], true);
} else {
! $cid = COM_applyFilter ($HTTP_GET_VARS['cid'], true);
}
! if (!empty ($type) && ($cid > 0)) {
$display .= PLG_callCommentForm ($type, $cid);
} else {
--- 453,461 ----
// This could still be a plugin wanting comments
if (isset ($HTTP_POST_VARS['cid'])) {
! $cid = COM_applyFilter ($HTTP_POST_VARS['cid']);
} else {
! $cid = COM_applyFilter ($HTTP_GET_VARS['cid']);
}
! if (!empty ($type) && !empty ($cid)) {
$display .= PLG_callCommentForm ($type, $cid);
} else {
More information about the geeklog-cvs
mailing list