i can confirm this as well on the latest upgrade of cacti from the update manager on ubuntu 7.10. The patch can fix the issue
sudo pico /usr/share/cacti/site/include/config.php
replace what is under
/* Sanity Check on "Corrupt" PHP_SELF */
with
if ((!is_file($_SERVER["PHP_SELF"])) && (!is_file($config["base_path"] . '/' . $_SERVER["PHP_SELF"]))) { if (!is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["PHP_SELF"])) { if (!((is_file($_SERVER["SCRIPT_FILENAME"])) && (substr_count($_SERVER["SCRIPT_FILENAME"], $_SERVER["PHP_SELF"])))) { if (!((is_file($_SERVER["SCRIPT_FILENAME"])))) { echo "\nInvalid PHP_SELF Path\n"; exit; }
Frits Letteboer, thanks a lot
i can confirm this as well on the latest upgrade of cacti from the update manager on ubuntu 7.10. The patch can fix the issue
sudo pico /usr/share/ cacti/site/ include/ config. php
replace what is under
/* Sanity Check on "Corrupt" PHP_SELF */
with
if ((!is_file( $_SERVER[ "PHP_SELF" ])) && (!is_file( $config[ "base_path" ] . '/' . $_SERVER[ "PHP_SELF" ]))) { $_SERVER[ "DOCUMENT_ ROOT"] . $_SERVER[ "PHP_SELF" ])) { file($_ SERVER[ "SCRIPT_ FILENAME" ])) && (substr_ count($ _SERVER[ "SCRIPT_ FILENAME" ], $_SERVER[ "PHP_SELF" ])))) { file($_ SERVER[ "SCRIPT_ FILENAME" ])))) {
if (!is_file(
if (!((is_
if (!((is_
echo "\nInvalid PHP_SELF Path\n";
exit;
}
Frits Letteboer, thanks a lot