隨著環境系統及PHP版本越來越多,碰到的問題也就越來越多,今天秀站網技術在幫客戶安裝默認織夢dedecms5.7 SP2程序后,點擊系統基本參數、SQL命令行工具、防采集串混淆空白無效,我們就來解決這一問題。
修改系統文件: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); } |
如圖所示:
新聞熱點
疑難解答