]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
prevent disclosing PHP version on PHP version check error 81/head
authornodiscc <nodiscc@gmail.com>
Tue, 16 Dec 2014 18:24:37 +0000 (19:24 +0100)
committernodiscc <nodiscc@gmail.com>
Tue, 16 Dec 2014 18:24:37 +0000 (19:24 +0100)
 * fixes https://github.com/shaarli/Shaarli/issues/78
 * fixes https://github.com/sebsauvage/Shaarli/issues/214

index.php

index d30cb05b63d093a798c587ce527d995362f853bf..4bbd902f3a8c5bdbbd8f8b8798a21495f2cdaae6 100644 (file)
--- a/index.php
+++ b/index.php
@@ -118,7 +118,7 @@ function checkphpversion()
     if (version_compare(PHP_VERSION, '5.1.0') < 0)
     {
         header('Content-Type: text/plain; charset=utf-8');
-        echo 'Your server supports PHP '.PHP_VERSION.'. Shaarli requires at least php 5.1.0, and thus cannot run. Sorry.';
+        echo 'Your PHP version is obsolete! Shaarli requires at least php 5.1.0, and thus cannot run. Sorry. Your PHP version has known security vulnerabilities and should be updated as soon as possible.';
         exit;
     }
 }