隨著環境系統及PHP版本越來越多,碰到的問題也就越來越多,今天秀站網技術在幫客戶安裝默認織夢dedecms5.7 SP2程序后,點擊系統基本參數、SQL命令行工具、防采集串混淆空白無效,我們就來解決這一問題。
導致原因:部分linux環境下生成隨機bytes錯誤
解決辦法:修改系統文件 common.func.php
修改系統文件:common.func.php ,路徑為: /include/common.func.php
第一步:刪除代碼
找到代碼(大概96-99行):
if (function_exists('openssl_random_pseudo_bytes')) { return openssl_random_pseudo_bytes($length); } |
刪除!
第二步:增加代碼
找到代碼(大概66行-69行):
if (empty($length) OR ! ctype_digit((string) $length))
{
return FALSE;
}
|
再其下面增加代碼:
if (function_exists('openssl_random_pseudo_bytes')) { return openssl_random_pseudo_bytes($length); } |
如圖所示:
本文地址:http://www.qksux.club/dedecms_wt/1748.html
發表評論
評論列表(條)