aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2014-12-16 19:24:37 +0100
committernodiscc <nodiscc@gmail.com>2014-12-16 19:24:37 +0100
commit509762236b4074bc7f1d344c5436fe8983db60dc (patch)
treefd21a6fbb6acc767f7c20fdfd9f25cc35335360d
parent569be2e8d5b64f57bf6f0daf329f33deea69eda6 (diff)
downloadShaarli-509762236b4074bc7f1d344c5436fe8983db60dc.tar.gz
Shaarli-509762236b4074bc7f1d344c5436fe8983db60dc.tar.zst
Shaarli-509762236b4074bc7f1d344c5436fe8983db60dc.zip
prevent disclosing PHP version on PHP version check error
* fixes https://github.com/shaarli/Shaarli/issues/78 * fixes https://github.com/sebsauvage/Shaarli/issues/214
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index d30cb05b..4bbd902f 100644
--- a/index.php
+++ b/index.php
@@ -118,7 +118,7 @@ function checkphpversion()
118 if (version_compare(PHP_VERSION, '5.1.0') < 0) 118 if (version_compare(PHP_VERSION, '5.1.0') < 0)
119 { 119 {
120 header('Content-Type: text/plain; charset=utf-8'); 120 header('Content-Type: text/plain; charset=utf-8');
121 echo 'Your server supports PHP '.PHP_VERSION.'. Shaarli requires at least php 5.1.0, and thus cannot run. Sorry.'; 121 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.';
122 exit; 122 exit;
123 } 123 }
124} 124}