[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/links category.php, 1.13, 1.14
Dirk Haun
dhaun at qs1489.pair.com
Tue Jan 1 07:25:24 EST 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv90256/public_html/admin/plugins/links
Modified Files:
category.php
Log Message:
Fixed creating sub-categories from a parent category with special characters
Index: category.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/links/category.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** category.php 31 Dec 2007 17:56:53 -0000 1.13
--- category.php 1 Jan 2008 12:25:22 -0000 1.14
***************
*** 9,13 ****
// | Geeklog links category administration page. |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
--- 9,13 ----
// | Geeklog links category administration page. |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
***************
*** 161,170 ****
$cid = addslashes($cid);
- $pid = addslashes($pid);
if (!empty($pid)) {
// have parent id, so making a new subcategory
// get parent access rights
! $result = DB_query("SELECT group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['linkcategories']} WHERE cid='{$pid}'");
$A = DB_fetchArray($result);
$A['owner_id'] = $_USER['uid'];
--- 161,169 ----
$cid = addslashes($cid);
if (!empty($pid)) {
// have parent id, so making a new subcategory
// get parent access rights
! $result = DB_query("SELECT group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['linkcategories']} WHERE cid='" . addslashes($pid) . "'");
$A = DB_fetchArray($result);
$A['owner_id'] = $_USER['uid'];
More information about the geeklog-cvs
mailing list