Package: webcalendar
Severity: normal

In 01_config_patch.dpatch the files user-app-postnuke.php,
user-ldap.php, user-nis.php and user.php are patched.  The lines:
$user_can_update_password = false;
$admin_can_add_user = false;
$admin_can_delete_user = false;
are changed to:
$user_can_update_password = $settings['user_can_update_password'];
$admin_can_add_user = $settings['admin_can_add_user'];
$admin_can_delete_user = $settings['admin_can_delete_user'];
This code is wrong as the values in the $settings arrays are strings and
we want boolean values.  The above three lines should be changed to:
$user_can_update_password = preg_match ( "/(1|yes|true|on|y|t)/i",
    $settings['user_can_update_password'] ) ? true : false;
$admin_can_add_user = preg_match ( "/(1|yes|true|on|y|t)/i",
    $settings['admin_can_add_user'] ) ? true : false;
$admin_can_delete_user = preg_match ( "/(1|yes|true|on|y|t)/i",
    $settings['admin_can_delete_user'] ) ? true : false;
 
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-386
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to