From: nodiscc Date: Tue, 16 Dec 2014 18:21:58 +0000 (+0100) Subject: prevent disclosing full path when raising "Shaarli directory not writeable" error X-Git-Tag: v0.0.43beta~19^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=569be2e8d5b64f57bf6f0daf329f33deea69eda6;p=github%2Fshaarli%2FShaarli.git prevent disclosing full path when raising "Shaarli directory not writeable" error * work on https://github.com/shaarli/Shaarli/issues/78 --- diff --git a/index.php b/index.php index 38958a79..d30cb05b 100644 --- a/index.php +++ b/index.php @@ -89,7 +89,7 @@ header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // Directories creations (Note that your web host may require different rights than 705.) -if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); +if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory.').
'); // Handling of old config file which do not have the new parameters. if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl());