diff options
author | nodiscc <nodiscc@gmail.com> | 2014-12-16 19:24:37 +0100 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2014-12-16 19:24:37 +0100 |
commit | 509762236b4074bc7f1d344c5436fe8983db60dc (patch) | |
tree | fd21a6fbb6acc767f7c20fdfd9f25cc35335360d /index.php | |
parent | 569be2e8d5b64f57bf6f0daf329f33deea69eda6 (diff) | |
download | Shaarli-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
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |