]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
prevent disclosing full path when raising "Shaarli directory not writeable" error
authornodiscc <nodiscc@gmail.com>
Tue, 16 Dec 2014 18:21:58 +0000 (19:21 +0100)
committernodiscc <nodiscc@gmail.com>
Tue, 16 Dec 2014 18:23:36 +0000 (19:23 +0100)
 * work on https://github.com/shaarli/Shaarli/issues/78

index.php

index 38958a79f199b1104acadf81fd7f4573df00c553..d30cb05b63d093a798c587ce527d995362f853bf 100644 (file)
--- 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('<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());