[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.693,1.694
Blaine Lang
blaine at qs1489.pair.com
Sun May 4 17:50:13 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv79550
Modified Files:
lib-common.php
Log Message:
Change to code in COM_startBlock() to use COM_sanitizeID to set the name for the {blockid} template variable.
Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.693
retrieving revision 1.694
diff -C2 -d -r1.693 -r1.694
*** lib-common.php 4 May 2008 21:42:59 -0000 1.693
--- lib-common.php 4 May 2008 21:50:11 -0000 1.694
***************
*** 1487,1491 ****
if (!isset($GLOBALS['siteblocks'])) $GLOBALS['siteblocks'] = array();
$blockid = stripslashes ($title);
! $blockid = strtr($blockid, "!@#$%^&*()'\"\\/?~`.,;: ", "________________________");
// Check if there is already a block of the same name
if (in_array($blockid,$GLOBALS['siteblocks'])) {
--- 1487,1491 ----
if (!isset($GLOBALS['siteblocks'])) $GLOBALS['siteblocks'] = array();
$blockid = stripslashes ($title);
! $blockid = COM_sanitizeID($title);
// Check if there is already a block of the same name
if (in_array($blockid,$GLOBALS['siteblocks'])) {
More information about the geeklog-cvs
mailing list