[CalendarServer-changes] [8418] CalendarServer/trunk/twistedcaldav/extensions.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 8 15:44:24 PST 2011
Revision: 8418
http://trac.macosforge.org/projects/calendarserver/changeset/8418
Author: sagen at apple.com
Date: 2011-12-08 15:44:23 -0800 (Thu, 08 Dec 2011)
Log Message:
-----------
Ignore principal-property-search terms less than 3 letters
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/extensions.py
Modified: CalendarServer/trunk/twistedcaldav/extensions.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/extensions.py 2011-12-08 20:32:30 UTC (rev 8417)
+++ CalendarServer/trunk/twistedcaldav/extensions.py 2011-12-08 23:44:23 UTC (rev 8418)
@@ -349,7 +349,10 @@
log.warn(msg)
raise HTTPError(StatusResponse(responsecode.BAD_REQUEST, msg))
- propertySearches.append((props.children, str(match), caseless, matchType))
+ # Ignore any query strings under three letters
+ matchText = str(match)
+ if len(matchText) >= 3:
+ propertySearches.append((props.children, matchText, caseless, matchType))
elif child.qname() == (calendarserver_namespace, "limit"):
try:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111208/7abd2a60/attachment.html>
More information about the calendarserver-changes
mailing list