Letractively / lightblog

Automatically exported from code.google.com/p/lightblog
Other
0 stars 0 forks source link

ProcessBrowser treating ALL comments, even on closed posts. #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a post whose comments are CLOSED
2. get the ID of that page
3. use the HTML below to post a comment, even though they are closed.
4. the comment would need to be approved, but it is still entered in teh 
database

What is the expected output? What do you see instead?
One should expect a check to see if the article being commented on has 
comments enabled. However, it simply treats all the comments the same, as 
long as you can get to the comment form. (the same as issue 18)

What version of the product are you using? On what operating system?
0.9.3 b1

If the option to not use moderation were working, the comments would show 
up, too.

Original issue reported on code.google.com by joeyvanh...@gmail.com on 31 May 2010 at 5:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
the HTML
-----------
                <form 
action="http://127.0.0.1/LightBlog/Sources/ProcessBrowser.php" method="post">
                    <p><input name="comment_name" type="text" 
id="cfname" maxlength="35" />
                    <label for="cfname"><small>Name 
(required)</small></label></p>
                    <p><input name="comment_email" type="text" 
id="cfemail" maxlength="255" />
                    <label for="cfemail"><small>Email 
(required)</small></label></p>
                    <p><input name="comment_website" type="text" 
id="cfwebsite" maxlength="255" />
                    <label 
for="cfwebsite"><small>Website</small></label></p>
                    <p><textarea cols="41" rows="10" 
name="comment_text" id="wysiwyg"></textarea></p>
                    <p><input name="comment_pid" type="text" 
value="num" />
                    <label for="comment_pid"><small>article 
ID</small></label></p></p>
                    <p><input name="comment_submit" type="submit" 
value="Submit" id="cfsubmit" /></p>
                </form>

Original comment by joeyvanh...@gmail.com on 31 May 2010 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by soren121@outlook.com on 31 May 2010 at 8:05

GoogleCodeExporter commented 9 years ago
Fixed in r479.

Original comment by soren121@outlook.com on 1 Jun 2010 at 12:01