From dbcad7406eedaeba259a6e1584ba3b0823115c8d Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 25 Feb 2015 13:25:45 +0100 Subject: [PATCH] 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 ++-- shaarli_version.php | 1 + shaarli_version.txt | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 shaarli_version.php delete mode 100644 shaarli_version.txt diff --git a/index.php b/index.php index 9d4ce15..99c3765 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(' diff --git a/shaarli_version.txt b/shaarli_version.txt deleted file mode 100644 index b6cffb3..0000000 --- a/shaarli_version.txt +++ /dev/null @@ -1 +0,0 @@ -0.0.43beta