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
This commit is contained in:
parent
569be2e8d5
commit
509762236b
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ function checkphpversion()
|
||||||
if (version_compare(PHP_VERSION, '5.1.0') < 0)
|
if (version_compare(PHP_VERSION, '5.1.0') < 0)
|
||||||
{
|
{
|
||||||
header('Content-Type: text/plain; charset=utf-8');
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue