aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2014-12-16 19:21:58 +0100
committernodiscc <nodiscc@gmail.com>2014-12-16 19:23:36 +0100
commit569be2e8d5b64f57bf6f0daf329f33deea69eda6 (patch)
tree7b0f9d817af64ef1a800118d7b432c91a93ee9d9
parent038acd3a7f5f8e4e9ef665b9bbd0971dc37bde33 (diff)
downloadShaarli-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.php2
1 files changed, 1 insertions, 1 deletions
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);
89header("Pragma: no-cache"); 89header("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.)
92if (!is_writable(realpath(dirname(__FILE__)))) die('<pre>ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').</pre>'); 92if (!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.
95if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl()); 95if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl());