[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.389,1.390 comment.php,1.79,1.80

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Oct 23 06:25:53 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv3098

Modified Files:
	lib-common.php comment.php 
Log Message:
Hard-coded the English word 'delete' in the URL to delete a comment.


Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** comment.php	23 Oct 2004 10:03:36 -0000	1.79
--- comment.php	23 Oct 2004 10:25:51 -0000	1.80
***************
*** 715,721 ****
      break;
  
! case $LANG01[28]: // Delete
!     $display .= deletecomment (COM_applyFilter ($cid, true),
!                                COM_applyFilter ($sid), COM_applyFilter ($type));
      break;
  
--- 715,722 ----
      break;
  
! case 'delete':
!     $display .= deletecomment (COM_applyFilter ($_REQUEST['cid'], true),
!                                COM_applyFilter ($_REQUEST['sid']),
!                                COM_applyFilter ($_REQUEST['type']));
      break;
  

Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.389
retrieving revision 1.390
diff -C2 -d -r1.389 -r1.390
*** lib-common.php	21 Oct 2004 09:12:51 -0000	1.389
--- lib-common.php	23 Oct 2004 10:25:51 -0000	1.390
***************
*** 2867,2871 ****
          {
              $deloption = '| <a href="' . $_CONF['site_url']
!                        . '/comment.php?mode=' . $LANG01[28] . '&cid='
                         . $A['cid'] . '&sid=' . $A['sid'] . '&type='
                         . $type . '">' . $LANG01[28] . '</a> ';
--- 2867,2871 ----
          {
              $deloption = '| <a href="' . $_CONF['site_url']
!                        . '/comment.php?mode=delete&cid='
                         . $A['cid'] . '&sid=' . $A['sid'] . '&type='
                         . $type . '">' . $LANG01[28] . '</a> ';




More information about the geeklog-cvs mailing list