新聞中心
解決dedecms在線更新后出現(xiàn)Power by DedeCms版權信息,如何去除
近期有一些客戶網(wǎng)站出現(xiàn)一些問題,無憂主機小編幫忙他查看,是掛了黑鏈,于是無憂小編幫忙進行程序升級,但是詭異的是升級過后,”Power by DedeCms”這個版權信息就會被添加到版權信息里面,起初無憂主機小編以為是模板里添加了,但是沒有找到。之后去后臺的版權修改,還有數(shù)據(jù)庫版權的表里面都沒有找到這串文字。 經(jīng)過排查這些常見的顯示的文件里都沒有這個版權的信息,那這個版權到底是如何出現(xiàn)的呢? 原來升級過后,底部版權信息調用標簽{dede:global.cfg_powerby/}就會會自動加上織夢官方 的鏈接[Power by DedeCms ],而更新后有變化的文件無憂主機小編找到一遍,發(fā)現(xiàn)include/dedesql.class.php,修復變量覆蓋漏洞。但是下面的這段代碼明顯是不正常的,為什么要用這種編碼呢?刪除該文件的下面這段代碼就可以解決這個問題了。代碼如下: $arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);$arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f, 0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72, 0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20, 0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);
本文地址:http://www.gle-technology.com/dedecms/14000.html