[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/links index.php, 1.57, 1.58

Dirk Haun dhaun at qs1489.pair.com
Sat May 17 15:56:12 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv81717/public_html/admin/plugins/links

Modified Files:
	index.php 
Log Message:
E_ALL fix: Check if $_POST['cid'] is set


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/links/index.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** index.php	12 Apr 2008 19:51:15 -0000	1.57
--- index.php	17 May 2008 19:56:10 -0000	1.58
***************
*** 492,498 ****
      }
  } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) {
      $display .= savelink (COM_applyFilter ($_POST['lid']),
              COM_applyFilter ($_POST['old_lid']),
!             $_POST['cid'], $_POST['categorydd'],
              $_POST['url'], $_POST['description'], $_POST['title'],
              COM_applyFilter ($_POST['hits'], true),
--- 492,502 ----
      }
  } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) {
+     $cid = '';
+     if (isset($_POST['cid'])) {
+         $cid = $_POST['cid'];
+     }
      $display .= savelink (COM_applyFilter ($_POST['lid']),
              COM_applyFilter ($_POST['old_lid']),
!             $cid, $_POST['categorydd'],
              $_POST['url'], $_POST['description'], $_POST['title'],
              COM_applyFilter ($_POST['hits'], true),




More information about the geeklog-cvs mailing list