From dbcad7406eedaeba259a6e1584ba3b0823115c8d Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 25 Feb 2015 13:25:45 +0100 Subject: Prevent visitors from reading shaarli version * fixes https://github.com/shaarli/Shaarli/issues/122 * the shaarli version is now in a php comment block, which prevents visitors from reading it when it is place on a PHP-enabled server, but still allows the update mechanism to read it from the source on github. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 9d4ce156..99c37652 100644 --- a/index.php +++ b/index.php @@ -184,8 +184,8 @@ function checkUpdate() if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])','',str_replace('