雷火电竞-中国电竞赛事及体育赛事平台

歡迎來到入門教程網(wǎng)!

dedecms

當(dāng)前位置:主頁(yè) > CMS教程 > dedecms >

織夢(mèng)CMS:Error:check Snooping out of bounds 的解決辦法

來源:本站原創(chuàng)|時(shí)間:2021-08-05|欄目:dedecms|點(diǎn)擊:

在本機(jī) E:\wwwroot\DedeCMS\v57\ 下安裝了V57最新版本的主程序,安裝成功后,生成首頁(yè)提示 :
 
=====================
 
Error:check Snooping out of bounds @ D:\wwwroot\gdhgc\wwwroot\kj\templets\default\article_article.htm
=====================
 
使用notepad++搜索了下包含 Error:check Snooping out 的文件,找到 include/dedetag.class.php 文件的第
 
325行,內(nèi)容如下
 
=====================
 
if (strpos($path, $this->clean(DEDEROOT)) !== 0) {
die('Error:check Snooping out of bounds @ '.$path);
}
=====================
 
windows下是不區(qū)分路徑大小寫的,在使用strpos時(shí)我們需要忽略大小寫,修改上述內(nèi)容為如下:
 
 
 
=====================
if (stripos($path, $this->clean(DEDEROOT)) !== 0) {
die('Error:check Snooping out of bounds @ '.$path);
}
=====================
 
出現(xiàn)該問題,主要是路徑中包含了大寫字母,使用stripos操作時(shí)忽略大小寫
 

上一篇:織夢(mèng)DEDECMS教程:去除列表頁(yè)文章標(biāo)題加粗標(biāo)簽

欄    目:dedecms

下一篇:dedecms實(shí)現(xiàn)列表頁(yè)縮略圖隨機(jī)調(diào)用的方法

本文標(biāo)題:織夢(mèng)CMS:Error:check Snooping out of bounds 的解決辦法

本文地址:http://www.jygsgssxh.com/a1/dedecms/14092.html

更多dedecms

您可能感興趣的文章

閱讀排行

本欄相關(guān)

隨機(jī)閱讀

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有