1

(16 replies, posted in PunBB 1.2 troubleshooting)

Yup, that did it. I guess it was the PunPortal mod that prevented the patch from working on functions.php. I replaced

$links[] = '<li id="portalnavlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';

with

$links[] = '<li id="portalnavlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.sha1($pun_user['id'].sha1(get_remote_address())).'">'.$lang_common['Logout'].'</a>';

and

$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';

with

$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.sha1($pun_user['id'].sha1(get_remote_address())).'">'.$lang_common['Logout'].'</a>';

Thanks smile

2

(16 replies, posted in PunBB 1.2 troubleshooting)

I'm having the same problem. I applied the patch for 1.2.17, and my logout link does not include the csrf_token.