My flickr

我的
我的
我的

views: 3037 times
BUG Report version: TextCube 1.5x, 1.6x, 1.7x
File: /interface/login/index.php
Find and Delete this Line (about line 26):
$blogURL = getBlogURL();

keep the /lib/auth.php, DO NOT MODIFY IT.

BUG Report version: TextCube 1.5x, 1.6x, 1.7x
File: /lib/auth.php
Find the Line 189:
$message = str_replace('[##_link_##]', "$hostURL$blogURL/login?loginid=" . rawurlencode($loginid) . '&password=' . rawurlencode($authtoken) . '&requestURI=' . rawurlencode("$hostURL$blogURL/owner/setting/account?password=" . rawurlencode($password)), $message);
REMOVE THIS: $hostURL
Fixed like this:
$message = str_replace('[##_link_##]', "$blogURL/login?loginid=" . rawurlencode($loginid) . '&password=' . rawurlencode($authtoken) . '&requestURI=' . rawurlencode("$blogURL/owner/setting/account?password=" . rawurlencode($password)), $message);

這支 bug 存在很久了,我追朔到 TC 1.5 好像就有了。之前有沒有我不知道,這是在討論區 winne 再問的時候我翻到的,起初我還以為他所謂的初始化密碼是使用者的那一塊,結果不是,反而是在登入登出的認證介面那邊!感謝 winne 讓我挖到這個臭蟲囉!

這個 bug 會讓使用者的重新設定密碼的信件連結錯誤,導致使用者無法正確的從 TC 所寄發的密碼信件正確的連結到部落格中。

我不放檔案,因為每個版本的東西可能不同,就勞請各位自己改一下吧!
創用 CC 授權
Creative Commons License
本創作適用 姓名標示-非商業性-禁止改作3.0 創用 CC 授權,台灣並依循所適用的授權條款。
 相關文章 

Writer profile
author image
偏執與強迫症的患者,算不上是無可救藥,只是我已經遇上我的良醫了。

Posted by hina

2008/05/25 16:41 2008/05/25 16:41
, , Keyword TextCube
Response
No Trackback , 8 Comments
RSS :
http://blog.hinablue.me/rss/response/553

Trackback URL : http://blog.hinablue.me/trackback/553

« Previous : 1 : ... 306 : 307 : 308 : 309 : 310 : 311 : 312 : 313 : 314 : ... 828 : Next »