From 0b2fb6aaab907d79efff6548395c1f79c6948346 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Wed, 14 Sep 2011 09:54:48 +0200 Subject: [PATCH] Fix #13303: use strtolower in ini_get_bool() In some cases, ini_get returns the actual config option string instead of "0"/"1", which causes the wrong value to be returned e.g. when the option is set to "On". --- core/utility_api.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/core/utility_api.php b/core/utility_api.php index cb4d372..45aa44c 100644 --- a/core/utility_api.php +++ b/core/utility_api.php @@ -81,7 +81,7 @@ function ini_get_bool( $p_name ) { $result = ini_get( $p_name ); if( is_string( $result ) ) { - switch( $result ) { + switch( strtolower( $result ) ) { case 'off': case 'false': case 'no': -- 1.7.4.1