From: nodiscc Date: Wed, 25 Feb 2015 12:25:45 +0000 (+0100) Subject: Prevent visitors from reading shaarli version X-Git-Tag: v0.0.44beta~17^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fpull%2F123%2Fhead;p=github%2Fshaarli%2FShaarli.git 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. --- 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(' diff --git a/shaarli_version.txt b/shaarli_version.txt deleted file mode 100644 index b6cffb3a..00000000 --- a/shaarli_version.txt +++ /dev/null @@ -1 +0,0 @@ -0.0.43beta