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:
parent
038acd3a7f
commit
569be2e8d5
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ function stripslashes_deep($value) { $value = is_array($value) ? array_map('stri
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
|
|
||||||
// Directories creations (Note that your web host may require different rights than 705.)
|
// 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.
|
// Handling of old config file which do not have the new parameters.
|
||||||
if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl());
|
if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl());
|
||||||
|
|
Loading…
Reference in a new issue