[geeklog-cvs] geeklog-1.3/public_html/admin/plugins/staticpages index.php,1.37,1.38

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Sep 25 14:38:19 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html/admin/plugins/staticpages
In directory www:/tmp/cvs-serv13402/plugins/staticpages

Modified Files:
	index.php 
Log Message:
Use new function COM_sanitizeID() to filter out unwanted characters from editable IDs.


Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/plugins/staticpages/index.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** index.php	8 Aug 2004 10:18:42 -0000	1.37
--- index.php	25 Sep 2004 18:38:17 -0000	1.38
***************
*** 481,489 ****
      global $_CONF, $LANG12, $LANG_STATIC, $_SP_CONF, $_TABLES;
  
!     $sp_id = str_replace (' ', '', $sp_id);
!     $sp_id = str_replace (array ('_', '/', '\\', ':'), '-', $sp_id);
!     if (empty ($sp_id)) {
!         $sp_id = COM_makesid ();
!     }
  
      // Check for unique page ID
--- 481,485 ----
      global $_CONF, $LANG12, $LANG_STATIC, $_SP_CONF, $_TABLES;
  
!     $sp_id = COM_sanitizeID ($sp_id);
  
      // Check for unique page ID




More information about the geeklog-cvs mailing list