summaryrefslogtreecommitdiff
path: root/extra/kdepim-runtime/fix-carddav-support.patch
blob: 25c2813074fbe98b804c1f0ec417cc190b7bb066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit bec63a313160ec6dc1833029d5e99746779ed3f4
Author: Gregory Oestreicher <greg@kamago.net>
Date:   Tue May 15 21:19:17 2012 +0200

    Add a prop-filter in the CardDAV requests
    
    BUG: 299482
    FIXED-IN: 4.8.4

diff --git a/resources/dav/protocols/carddavprotocol.cpp b/resources/dav/protocols/carddavprotocol.cpp
index 38eca17..9c58653 100644
--- a/resources/dav/protocols/carddavprotocol.cpp
+++ b/resources/dav/protocols/carddavprotocol.cpp
@@ -35,6 +35,12 @@ CarddavProtocol::CarddavProtocol()
   propElement.appendChild( document.createElementNS( "DAV:", "resourcetype" ) );
   propElement.appendChild( document.createElementNS( "DAV:", "getetag" ) );
 
+  QDomElement filterElement = document.createElementNS( "urn:ietf:params:xml:ns:carddav", "filter" );
+  queryElement.appendChild( filterElement );
+  QDomElement propfilterElement = document.createElementNS( "urn:ietf:params:xml:ns:carddav", "prop-filter" );
+  propfilterElement.setAttribute( "name", "FN" );
+  filterElement.appendChild( propfilterElement );
+
   mItemsQueries << document;
 }