Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Z-push Carddav with DaviCal backend: newlines in values

    Z-Push when using other backends
    2
    4
    1325
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Windkracht8
      Windkracht8 last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Manfred
        Manfred Kopano last edited by

        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

        1 Reply Last reply Reply Quote 0
        • Windkracht8
          Windkracht8 last edited by

          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

          1 Reply Last reply Reply Quote 0
          • Manfred
            Manfred Kopano last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post