Skip to content

Commit e9ec0c8

Browse files
committed
New fix for empty query strings. The QUERY_STRING in request.META is not set the same way under the builtin server as under Apache; under apache there will be a QUERY_STRING entry wich is explicitly Null. Handle this.
- Legacy-Id: 3028
1 parent fcaec52 commit e9ec0c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ def ical_agenda(request, num=None):
336336
wgs = IETFWG.objects.filter(status=IETFWG.ACTIVE).order_by('group_acronym__acronym')
337337
rgs = IRTF.objects.all().order_by('acronym')
338338
areas = Area.objects.filter(status=Area.ACTIVE).order_by('area_acronym__acronym')
339-
filter = (request.META.get('QUERY_STRING','')).lower().split(',');
339+
q = request.META.get('QUERY_STRING','') or ""
340+
filter = q.lower().split(',');
340341
include = set(filter)
341342

342343
for slot in timeslots:

0 commit comments

Comments
 (0)