[geeklog-cvs] Geeklog-1.x/plugins/calendar functions.inc, 1.94, 1.95 install_defaults.php, 1.7, 1.8

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


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

Modified Files:
	functions.inc install_defaults.php 
Log Message:
Fixed protection against direct execution on non-case sensitive file systems


Index: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/functions.inc,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** functions.inc	3 Aug 2008 17:43:55 -0000	1.94
--- functions.inc	21 Sep 2008 08:37:07 -0000	1.95
***************
*** 37,42 ****
  // $Id$
  
! if (strpos($_SERVER['PHP_SELF'], 'functions.inc') !== false) {
!     die ('This file can not be used on its own.');
  }
  
--- 37,42 ----
  // $Id$
  
! if (strpos(strtolower($_SERVER['PHP_SELF']), 'functions.inc') !== false) {
!     die('This file can not be used on its own.');
  }
  

Index: install_defaults.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/install_defaults.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** install_defaults.php	3 Jul 2008 18:00:50 -0000	1.7
--- install_defaults.php	21 Sep 2008 08:37:08 -0000	1.8
***************
*** 38,42 ****
  // $Id$
  
! if (strpos($_SERVER['PHP_SELF'], 'install_defaults.php') !== false) {
      die('This file can not be used on its own!');
  }
--- 38,42 ----
  // $Id$
  
! if (strpos(strtolower($_SERVER['PHP_SELF']), 'install_defaults.php') !== false) {
      die('This file can not be used on its own!');
  }




More information about the geeklog-cvs mailing list