Dec
14

Due to a spam attack this week and yesterday, I used to disable comments over the network temporarily and enable it again with some changes. So if you have posted comments between yesterday and today and the system told you that its awaiting moderation it is not, it is not and the comment have just been lost sorry. I have written a fast fix for the mt-comments.cgi but for an unknown reason the MT code still executed before my fix, I’m still investigating on this issue but sincerely I can’t understand how both codes could be executed in the if else clause. Any idea ?

if ( $referer =~ '' or $referer !~ m|^http://(.*).$hostname/| ) {
    ban($visitor_ip);
} else {
use strict;
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap App => 'MT::App::Comments';
}

Comments are now enabled again and hope this will be fixed before the next spam attack.

Tags: No Tags

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>