Menu

#2 plugin not working

closed-fixed
5
2006-06-25
2006-06-25
Tor Gisvold
No

There is a rather serious error in the akismet plugin that stops it working
- it will always return "false" - i.e. that the submitted comment is not
spam.

This is due to the following line :
------
foreach( $submit_comment as $k => $v )
{
$query_string .= $k.'='.urlencode( $k ).'&';
}
-------

which should be :
--------
foreach( $submit_comment as $k => $v )
{
logIo3("0","building query string ->".$k);
$query_string .= $k.'='.urlencode( $v ).'&';//bug - was k
}

------------
i.e in the original the string sent to akismet for verification was
"blog=blog&user_ip=user_ip" - always the same string, none of the
variables were included, just their names.

Discussion

  • daniel hahler

    daniel hahler - 2006-06-25

    Logged In: YES
    user_id=663176

    Yes, very stupid. Fixed.

    Thanks!

     
  • daniel hahler

    daniel hahler - 2006-06-25
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB