[geeklog-cvs] Geeklog-1.x db-config.php.dist,1.4,1.5

Dirk Haun dhaun at qs1489.pair.com
Sun Sep 21 04:37:10 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x
In directory qs1489.pair.com:/tmp/cvs-serv33344

Modified Files:
	db-config.php.dist 
Log Message:
Fixed protection against direct execution on non-case sensitive file systems


Index: db-config.php.dist
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/db-config.php.dist,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** db-config.php.dist	27 Jan 2008 10:53:03 -0000	1.4
--- db-config.php.dist	21 Sep 2008 08:37:07 -0000	1.5
***************
*** 9,13 ****
   */
  
! if (strpos($_SERVER['PHP_SELF'], 'db-config.php') !== false) {
      die('This file can not be used on its own!');
  }
--- 9,13 ----
   */
  
! if (strpos(strtolower($_SERVER['PHP_SELF']), 'db-config.php') !== false) {
      die('This file can not be used on its own!');
  }




More information about the geeklog-cvs mailing list