wrong permission configuration migth trigger error or warning message leaking location of var-folder.
ref #238
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
- Check your ```/lib/config.local.php``` file and compare it with ```/lib/config.original.php```, the configuration syntax or a parameter may have changed
- Check owner & permissions of your files
+- set `debug` option to `true` to check any warning or error
## Security
* or needs to start the installation script
*/
$cfg['installation_done'] = false;
+
+/* Enable this debug flag to allow eventual PHP error reporting.
+ * This is disabled by default permission misconfiguration might generate warnings or errors.
+ * Those warnings can break Jirafeau and also show path to var- folder in debug messages.
+ * var- folder should kept secret and accessing it may lead to data leak if unprotected.
+ */
+$cfg['debug'] = false;
unset($cfgOriginal);
}
+// Setup debug mode
+error_reporting(0);
+if ($cfg['debug'] === true)
+{
+ error_reporting(E_ALL);
+}
+
// Set constants
/* Jirafeau package */