Z-push Carddav with DaviCal backend: newlines in values



  • Hi all,

    I have an issue with multi lines fields with a carddav (Davical) backend. When creating or updating a contact with multiple lines in the note field, the value gets cut off because an invalid vcard is created. To fix this I have added this line in carddav.php, line 1269:

    $val = str_replace("\n", "\\n", $val);
    

    This escapes the newlines in the value, which make sure that a valid vcard is created in Davical.

    Is this something for the main branch?

    Regards,
    Bart


  • Kopano

    Hi Bart,

    carddav and caldav backends are community contributions, so fixes and improvements are always welcome. If you’d like to contribute this code, please take a look at https://wiki.z-hub.io/display/ZP/Development+guidelines. That would get the code into the release faster.

    Manfred



  • Hello Manfred,

    That page explains that I have to get in contact with you “to get permissions to Stash”. can you provide this access to me? I have created https://jira.z-hub.io/browse/ZP-1269 for this issue.

    I am windkracht8 / Bart Vullings on Jira.

    Bart


  • Kopano

    Hi Bart,

    you should be able to login into stash and also see the progress buttons for the ticket you’ve created in JIRA. Let me know if there’s something missing or you’re lacking permissions.

    Manfred


Log in to reply
 

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.