Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 BUG with $require_name_email

closed
nobody
None
5
2003-10-17
2002-10-29
Anonymous
No

The line in b2comment.post.php:

if (($require_name_email) && ($email == "" || $email == "@") || $author == "" || $author == "name") { //original fix by Dodo

Doesn't seem to do what it's advertised. In that line, even if $require_name_email is 0, if $author is blank or "name", it'll still produce the error. I think that this should read:

if (($require_name_email) && ($email == "" || $email == "@" || $author == "" || $author == "name")) {

This will honor the setting of $require_name_email properly.

Discussion

  • Mike Little
    Mike Little
    2003-10-17

    • status: open --> closed