views: 1986 times
超大字體(180%)放大字體(130%)原始字體(100%)
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 授權,台灣並依循所適用的授權條款。

Bookmarks  HEMiDEMi  Technorati  Del.icio.us  Digg  funP  Yahoo!  Furl
Writer profile
author image
偏執與強迫症的患者,算不上是無可救藥,只是我已經遇上我的良醫了。
Posted by hina
Tags , , Keyword TextCube

Trackback URL : http://hina.ushiisland.net/blog/hinablue/trackback/553

Leave your greetings.

  1. Without $hostURL, link will not contain full URL. $hostURL contains HTTP_HOST and port information. ^^

    Thank you for bug reports :D

    2008/05/25 14:22 [ Permalink : Modify/Delete : Reply ]
[登入][OpenID是?]