解决kangle默认设置下被跨目录读写

  208 次阅读

CONTENT

我们来解决这个程序的防护方法就是
设置kangle的php-templete.ini文件,找到open_basedir,把前面的分号去掉,如下所示即可解决此问题。

; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
open_basedir = "${doc_root}:/tmp"

保存重启下kangle即可。

Comments | NOTHING

暂无评论...