[geeklog-cvs] Geeklog-1.x/plugins/links functions.inc, 1.110, 1.111 install_defaults.php, 1.6, 1.7
Dirk Haun
dhaun at qs1489.pair.com
Sun Sep 21 04:37:10 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv33344/plugins/links
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/links/functions.inc,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -d -r1.110 -r1.111
*** functions.inc 1 Jul 2008 19:52:58 -0000 1.110
--- functions.inc 21 Sep 2008 08:37:08 -0000 1.111
***************
*** 39,43 ****
// $Id$
! if (strpos($_SERVER['PHP_SELF'], 'functions.inc') !== false) {
die('This file can not be used on its own.');
}
--- 39,43 ----
// $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/links/install_defaults.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** install_defaults.php 3 Jul 2008 18:00:53 -0000 1.6
--- install_defaults.php 21 Sep 2008 08:37:08 -0000 1.7
***************
*** 39,43 ****
// $Id$
! if (strpos($_SERVER['PHP_SELF'], 'install_defaults.php') !== false) {
die('This file can not be used on its own!');
}
--- 39,43 ----
// $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