encryption_fix.dat

来自「Internet Task Management System可以让用户分配和管」· DAT 代码 · 共 16 行

DAT
16
字号
This problem was found running ITMS Build 0104 running Suse 7.2:
Support Request ID: 521504
Executive Summary: Users can't login due to web server's implementation on crypt function

Fix Details:
In toolbox.php, in the function db_add_user, replace line 
872 with:
$query = "INSERT INTO ldap (name, password) VALUES ('$newusername', '" . crypt($newpassword, substr($newpassword, 0, 2)) . "')";

Also in toolbox.php in the function ldap_add_user, replace line
855 with:
$info["password"] =  crypt($newpassword, substr($newpassword, 0, 2))


Note:
Provided in this patch are versions of toolbox.php for ITMS Oracle Patch (build 0104) and ITMS (build 0104) with the above changes applied

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?