diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-01-04 01:47:29 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-01-04 01:47:29 +0300 |
commit | 571a4d59388ec29b3937e10fa26fcbbbeab9c6e5 (patch) | |
tree | 1d8d31596eaf5f9a36e9ef10462d534b0df8d8ba /plugins | |
parent | 7868fece4909d6f6a96cf3b60a5e982c1197b985 (diff) |
Fixed security bug, configuration file now hidden from browser
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Installation/Controller.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php index 05ecdf4aa2..bf6f9929ce 100644 --- a/plugins/Installation/Controller.php +++ b/plugins/Installation/Controller.php @@ -333,8 +333,9 @@ class Piwik_Installation_Controller extends Piwik_Controller } protected function writeConfigFileFromSession() - { - $configFile = "; file automatically generated during the piwik installation process\n"; + {
+ $configFile = "; <?php exit; ?> DO NOT REMOVE THIS LINE\n"; + $configFile .= "; file automatically generated during the piwik installation process\n"; // super user information $configFile .= "[superuser]\n"; |