diff --git a/dynastie/views.py b/dynastie/views.py index d6e0500..6e4bdaf 100755 --- a/dynastie/views.py +++ b/dynastie/views.py @@ -802,7 +802,10 @@ def tinymcelist_edit(request, post_id): def add_comment(request, post_id, parent_id): from dynastie.generators import post - ref = request.META['HTTP_REFERER'] + if not 'HTTP_REFERER' in request.META: + ref = "/" + else: + ref = request.META['HTTP_REFERER'] # Anti robot !! if request.POST['email'] != '':