From 952027dd7f794ff4b2d4f5eddf549c5b5070fa38 Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Mon, 7 Mar 2016 14:04:57 +0100 Subject: [PATCH] Do not release information about the PHP version running underneath. --- modules/core/hooks/hook_sanitycheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/hooks/hook_sanitycheck.php b/modules/core/hooks/hook_sanitycheck.php index 24e0f812d..5d1a8a14c 100644 --- a/modules/core/hooks/hook_sanitycheck.php +++ b/modules/core/hooks/hook_sanitycheck.php @@ -24,9 +24,9 @@ function core_hook_sanitycheck(&$hookinfo) { } if (version_compare(phpversion(), '5.3', '>=')) { - $hookinfo['info'][] = '[core] You are running PHP version ' . phpversion() . '. Great.'; + $hookinfo['info'][] = '[core] You are running a PHP version suitable for SimpleSAMLphp.'; } else { - $hookinfo['errors'][] = '[core] You are running PHP version ' . phpversion() . '. SimpleSAMLphp requires version >= 5.3. Please upgrade!'; + $hookinfo['errors'][] = '[core] You are running an old PHP installation. Please check the requirements for your SimpleSAMLphp version and upgrade.'; } $info = array(); -- GitLab