Skip to content

Commit

Permalink
prevent disclosing PHP version on PHP version check error
Browse files Browse the repository at this point in the history
 * fixes #78
 * fixes sebsauvage#214
  • Loading branch information
nodiscc committed Dec 16, 2014
1 parent 569be2e commit 5097622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5097622

Please sign in to comment.