Dynastie

Dynastie Commit Details

Date:2016-06-05 09:13:46 (4 years 1 month ago)
Author:Grégory Soutadé
Branch:master
Commit:7b93925d0021d25f0578a46c4125e4d908023e5e
Parents: 7fff2dbd2d2730d331526bb6fd3010a170563458
Message:Some robots doesn't set referer when they try to add comment

Changes:
Mdynastie/views.py (1 diff)

File differences

dynastie/views.py
802802
803803
804804
805
805
806
807
808
806809
807810
808811
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'] != '':

Archive Download the corresponding diff file

Branches

Tags