prevent disclosing full path when raising "Shaarli directory not writeable" error

* work on https://github.com/shaarli/Shaarli/issues/78
This commit is contained in:
nodiscc 2014-12-16 19:21:58 +01:00
parent 038acd3a7f
commit 569be2e8d5
1 changed files with 1 additions and 1 deletions

View File

@ -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('<pre>ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').</pre>');
if (!is_writable(realpath(dirname(__FILE__)))) die('<pre>ERROR: Shaarli does not have the right to write in its own directory.').</pre>');
// Handling of old config file which do not have the new parameters.
if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl());