Opened 4 years ago

Closed 4 years ago

#1485781 closed Bugs (fixed)

LDAP AddressBook null values in contact fields produce an error

Reported by: atuin Owned by:
Priority: 5 Milestone: 0.3-stable
Component: LDAP connection Version: 0.2.1
Severity: minor Keywords: ldap addressbook
Cc:

Description

hello (sorry for my bad english)

With extended ldap adressbook,(view http://www.roundcubeforum.net/plug-ins/2292-global-address-book-additional-fields-additional-email-addresses-4.html#post17779)

when we add a contact with null values in fields produce an "value #0 invalid per syntax" error on the ldap server (openldap)

The problem comes when fields in the html pages are left empty, which is normal for this application.

so we changed on /program/include/rcube_ldap.php

$newentry[$fld] = $val;

with

if ($val != "" ) $newentry[$fld] = $val;

Cyril

Change History (2)

comment:1 Changed 4 years ago by alec

  • Milestone changed from later to 0.2.2

comment:2 Changed 4 years ago by alec

  • Component changed from Addressbook to LDAP connection
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [b4fa5914].

Note: See TracTickets for help on using tickets.