diff options
author | nodiscc <nodiscc@gmail.com> | 2014-12-16 19:21:58 +0100 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2014-12-16 19:23:36 +0100 |
commit | 569be2e8d5b64f57bf6f0daf329f33deea69eda6 (patch) | |
tree | 7b0f9d817af64ef1a800118d7b432c91a93ee9d9 | |
parent | 038acd3a7f5f8e4e9ef665b9bbd0971dc37bde33 (diff) | |
download | Shaarli-569be2e8d5b64f57bf6f0daf329f33deea69eda6.tar.gz Shaarli-569be2e8d5b64f57bf6f0daf329f33deea69eda6.tar.zst Shaarli-569be2e8d5b64f57bf6f0daf329f33deea69eda6.zip |
prevent disclosing full path when raising "Shaarli directory not writeable" error
* work on https://github.com/shaarli/Shaarli/issues/78
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -89,7 +89,7 @@ header("Cache-Control: post-check=0, pre-check=0", false); | |||
89 | header("Pragma: no-cache"); | 89 | header("Pragma: no-cache"); |
90 | 90 | ||
91 | // Directories creations (Note that your web host may require different rights than 705.) | 91 | // Directories creations (Note that your web host may require different rights than 705.) |
92 | 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>'); | 92 | if (!is_writable(realpath(dirname(__FILE__)))) die('<pre>ERROR: Shaarli does not have the right to write in its own directory.').</pre>'); |
93 | 93 | ||
94 | // Handling of old config file which do not have the new parameters. | 94 | // Handling of old config file which do not have the new parameters. |
95 | if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl()); | 95 | if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl()); |