summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch')
-rw-r--r--www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch120
1 files changed, 0 insertions, 120 deletions
diff --git a/www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch b/www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch
deleted file mode 100644
index a93f5b329fe7..000000000000
--- a/www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch
+++ /dev/null
@@ -1,120 +0,0 @@
---- index.php.orig 2005-04-02 06:48:00.000000000 +0000
-+++ index.php 2005-03-23 16:35:50.000000000 +0000
-@@ -122,7 +122,7 @@
- require('./includes/mb/class.' . $sensor_program . '.inc.php');
- $mbinfo = new mbinfo;
- } else {
-- echo '<center><b>Error: ' . $sensor_program . ' is not currently supported</b></center>';
-+ echo '<center><b>Error: ' . htmlentities($sensor_program) . ' is not currently supported</b></center>';
- exit;
- }
- }
---- includes/system_header.php.orig 2005-04-02 06:48:14.000000000 +0000
-+++ includes/system_header.php 2005-03-23 16:30:38.000000000 +0000
-@@ -18,6 +18,11 @@
- // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
- // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
-+
-+if (eregi('system_header.php', $_SERVER['PHP_SELF'])) {
-+ exit;
-+}
-+
- header("Cache-Control: no-cache, must-revalidate");
- if (!isset($charset)) {
- $charset = 'iso-8859-1';
---- includes/system_footer.php.orig 2005-04-02 06:48:23.000000000 +0000
-+++ includes/system_footer.php 2005-03-23 16:33:59.000000000 +0000
-@@ -13,6 +13,11 @@
- // along with this program; if not, write to the Free Software
- // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
-+
-+if (eregi('system_footer.php', $_SERVER['PHP_SELF'])) {
-+ exit;
-+}
-+
- if (!$hide_picklist) {
- echo "<center>";
-
---- includes/XPath.class.php.orig 2005-04-02 06:48:29.000000000 +0000
-+++ includes/XPath.class.php 2005-03-23 16:27:33.000000000 +0000
-@@ -4969,7 +4969,7 @@
- $pos += $afterText ? 1 : 0;
- $parentNode['textParts'] = array_merge(
- array_slice($parentNode['textParts'], 0, $pos),
-- '',
-+ array(''),
- array_slice($parentNode['textParts'], $pos)
- );
-
-@@ -5051,7 +5051,7 @@
- $pos -= $afterText ? 0 : 1;
- $parentNode['textParts'] = array_merge(
- array_slice($parentNode['textParts'], 0, $pos),
-- '',
-+ array(''),
- array_slice($parentNode['textParts'], $pos)
- );
- // We are going from bottom to top, but the user will want results from top to bottom.
---- includes/os/class.Darwin.inc.php.orig 2005-04-02 06:48:39.000000000 +0000
-+++ includes/os/class.Darwin.inc.php 2005-03-23 16:40:36.000000000 +0000
-@@ -19,8 +19,13 @@
-
- // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
-
-+if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
-+ exit;
-+}
-+
- require('./includes/os/class.BSD.common.inc.php');
-
-+
- echo "<p align=center><b>Note: The Darwin version of phpSysInfo is work in progress, some things currently don't work</b></p>";
-
- class sysinfo extends bsd_common {
---- includes/os/class.NetBSD.inc.php.orig 2005-04-02 06:48:46.000000000 +0000
-+++ includes/os/class.NetBSD.inc.php 2005-03-23 16:41:25.000000000 +0000
-@@ -19,8 +19,13 @@
-
- // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
-
-+if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
-+ exit;
-+}
-+
- require('./includes/os/class.BSD.common.inc.php');
-
-+
- class sysinfo extends bsd_common {
- var $cpu_regexp;
- var $scsi_regexp;
---- includes/os/class.FreeBSD.inc.php.orig 2005-04-02 06:48:54.000000000 +0000
-+++ includes/os/class.FreeBSD.inc.php 2005-03-23 16:41:02.000000000 +0000
-@@ -19,6 +19,10 @@
-
- // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
-
-+if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
-+ exit;
-+}
-+
- require('./includes/os/class.BSD.common.inc.php');
-
- class sysinfo extends bsd_common {
---- includes/os/class.OpenBSD.inc.php.orig 2005-04-02 06:49:02.000000000 +0000
-+++ includes/os/class.OpenBSD.inc.php 2005-03-23 16:41:19.000000000 +0000
-@@ -19,8 +19,13 @@
-
- // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
-
-+if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
-+ exit;
-+}
-+
- require('./includes/os/class.BSD.common.inc.php');
-
-+
- class sysinfo extends bsd_common {
- var $cpu_regexp;
- var $scsi_regexp;