昨天發佈的新版補丁,應該修復了一個重置密碼的漏洞,但直接導致新的 bug,補丁後重置密碼的鏈接無法重置密碼了,設置完點擊就出錯:

解決方案,修改 member_getpasswd.php 和 member_getpasswd.php 添加按鈕代碼獲取 sign 。

template/default/member/getpasswd.htm

  1. <form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid">

改成

  1. <form method="post" autocomplete="off" action="member.php?mod=getpasswd&uid=$uid&id=$hashid&sign=$sign">

source/module/member/member_getpasswd.php

  1.                 $hashid = $_GET['id'];
  2.                 $uid = $_GET['uid'];

改成

  1.                 $hashid = $_GET['id'];
  2.                 $uid = $_GET['uid'];
  3.                 $sign = $_GET['sign'];