public
Description: A full featured and opinionated blogging solution using Django
Homepage: http://lethain.com/projects/lifeflow/
Clone URL: git://github.com/lethain/lifeflow.git
Added page to display for improper accesses of /comments/create/ to cut down on 
error messages sent.
lethain (author)
Wed Aug 27 10:38:07 -0700 2008
commit  9c56e23f99d13d960c1ffe1d00fffcb7eb33d740
tree    1191b91da849d79b5b19ab5c359ea7b93f8356b0
parent  1444ecbcae553dce35a5439cf168e446c76a5cbb
...
40
41
42
 
 
43
44
45
...
40
41
42
43
44
45
46
47
0
@@ -40,6 +40,8 @@ def comments(request, entry_id=None, parent_id=None):
0
     if request.POST.has_key('entry_id'):
0
         id = int(request.POST['entry_id'])
0
     # otherwise use the parameter
0
+    elif entry_id is None:
0
+        return render_to_response('lifeflow/invalid_comment.html',{},RequestContext(request, {}))
0
     else:
0
         id = int(entry_id)
0
     # TODO: validate ID, throw 500 otherwise

Comments