MantisBT: master a6662375

Author Committer Branch Timestamp Parent
dregad dregad master 2011-09-14 00:48 master aa3244ae
Affected Issues  0013303: File attachments cannot be uploaded when PHP's "file_uploads" configuration directive equals "On"
Changeset

Fix 0013303: use strtolower in ini_get_bool()

Generally, ini_get() returns '0' or '1' when querying a boolean option,
regardless of the actual string used to set it (i.e. On, False, etc).
However, in some cases (e.g. when the option is set in httpd.conf
via php_admin_value instead of php_admin_flag), ini_get() returns the
string itself instead.

This caused ini_get_bool() to wrongly return False when the option is
set to an equivalent of True but with a different case ('On', 'TRUE').

mod - core/utility_api.php Diff File