dayzman
04-02-2008, 12:48 PM
Hi,
In the function build_new_post, it seems that a post with an invalid hash will still get posted, is that so? It seems to me that only the original hash value is replaced by 'invalid posthash'. Does this produce a different effect?
// Make sure the posthash is valid
if (md5($post['poststarttime'] . $vbulletin->userinfo['userid'] . $vbulletin->userinfo['salt']) != $post['posthash'])
{
$post['posthash'] = 'invalid posthash'; // don't phrase me
}
Thanks,
Michael
In the function build_new_post, it seems that a post with an invalid hash will still get posted, is that so? It seems to me that only the original hash value is replaced by 'invalid posthash'. Does this produce a different effect?
// Make sure the posthash is valid
if (md5($post['poststarttime'] . $vbulletin->userinfo['userid'] . $vbulletin->userinfo['salt']) != $post['posthash'])
{
$post['posthash'] = 'invalid posthash'; // don't phrase me
}
Thanks,
Michael