From 87fad589653478875ba6f86a5c5ceec805d0f8b2 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Tue, 8 Feb 2011 07:57:34 -0500 Subject: [PATCH 1/2] PMASA-2011-1 fixes --- changelog.php | 10 +++++++++- license.php | 11 ++++++++++- readme.php | 10 +++++++++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/changelog.php b/changelog.php index 2b0dc3ae0..1b4807aa4 100644 --- a/changelog.php +++ b/changelog.php @@ -6,7 +6,15 @@ * @version $Id$ */ -$changelog = htmlspecialchars(file_get_contents('ChangeLog')); +$filename = 'ChangeLog'; + +// Check if the file is available, some distributions remove these. +if (is_readable($filename)) { + $changelog = htmlspecialchars(file_get_contents($filename)); +} else { + echo "The $filename file is not available on this system, please visit www.phpmyadmin.net for more information."; + exit; +} $replaces = array( '@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@' diff --git a/license.php b/license.php index 91927f41a..c8c295799 100644 --- a/license.php +++ b/license.php @@ -13,5 +13,14 @@ * */ header('Content-type: text/plain; charset=iso-8859-1'); -readfile('LICENSE'); + +$filename = 'LICENSE'; + +// Check if the file is available, some distributions remove these. +if (is_readable($filename)) { + readfile($filename); +} else { + echo "The $filename file is not available on this system, please visit www.phpmyadmin.net for more information."; +} + ?> diff --git a/readme.php b/readme.php index 34fecce0e..7f59a4e2f 100644 --- a/readme.php +++ b/readme.php @@ -13,5 +13,13 @@ * */ header('Content-type: text/plain; charset=utf-8'); -readfile('README'); + +$filename = 'README'; + +// Check if the file is available, some distributions remove these. +if (is_readable($filename)) { + readfile($filename); +} else { + echo "The $filename file is not available on this system, please visit www.phpmyadmin.net for more information."; +} ?> From 448940b37b55648248d9a62139b8838feece3931 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 8 Feb 2011 08:07:22 -0500 Subject: [PATCH 2/2] 2.11.11.2 release --- ChangeLog | 3 +++ Documentation.html | 4 ++-- README | 4 ++-- libraries/Config.class.php | 2 +- translators.html | 4 ++-- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 89fe37c4b..06a61e219 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog $Id$ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $ +2.11.11.2 (2011-02-08) +- [security] Path disclosure, see PMASA-2011-1 + 2.11.11.1 (2010-11-29) - bug #3115519 (private) [security] XSS on db search, see PMASA-2010-8 diff --git a/Documentation.html b/Documentation.html index a3f798278..6fadc33be 100644 --- a/Documentation.html +++ b/Documentation.html @@ -11,7 +11,7 @@ - phpMyAdmin 2.11.11.1 - Documentation + phpMyAdmin 2.11.11.2 - Documentation @@ -33,7 +33,7 @@
  • Glossary
  • -

    phpMyAdmin 2.11.11.1 Documentation

    +

    phpMyAdmin 2.11.11.2 Documentation

    -

    phpMyAdmin 2.11.11.1 official translators list

    +

    phpMyAdmin 2.11.11.2 official translators list

    Here is the list of the "official translators" of phpMyAdmin.