[geeklog-cvs] Geeklog-1.x/public_html/layout/professional functions.php, 1.16, 1.17

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


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

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


Index: functions.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/functions.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** functions.php	17 Aug 2008 14:16:02 -0000	1.16
--- functions.php	21 Sep 2008 08:37:11 -0000	1.17
***************
*** 2,6 ****
  
  // this file can't be used on its own
! if (strpos($_SERVER['PHP_SELF'], 'functions.php') !== false) {
      die('This file can not be used on its own!');
  }
--- 2,6 ----
  
  // this file can't be used on its own
! if (strpos(strtolower($_SERVER['PHP_SELF']), 'functions.php') !== false) {
      die('This file can not be used on its own!');
  }




More information about the geeklog-cvs mailing list