Posted on 9/5/2008 12:01:46 AM by Justin Etheredge
So, I have been having problems for a while now with my blog not accepting comments from people that don't enter a website into the comment form. Well, I wasn't sure why this was happening, and I finally had a chance to trace down the issue. It took all of 10 seconds once I remembered to look for it, and embarrassingly it was my own code. Mea Culpa. Anyways, it all had to do with the fact that I was not checking the website property on the comment object for null before I made this assignment:
askimetComment.CommentAuthorUrl = comment.Website.OriginalString;
Geez. I have no one to blame but myself for not testing this properly, and I sincerely apologize to anyone that used the extension and has lost comments due to it. I have fixed it and updated the latest zip. You can grab it here:
BlogEngine.net 1.4 Akismet Extension