Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

后台广告创建处能直接上传 webshell #50

Closed
rmb122 opened this issue Feb 22, 2020 · 3 comments
Closed

后台广告创建处能直接上传 webshell #50

rmb122 opened this issue Feb 22, 2020 · 3 comments

Comments

@rmb122
Copy link

rmb122 commented Feb 22, 2020

原因与 #46 相同, 可以使用相同方式修复

public function beforeValidate()
    {
        if($this->ad !== "0") {
            $this->ad = UploadedFile::getInstance($this, "ad");
        }
        return parent::beforeValidate();
    }
@liufee
Copy link
Owner

liufee commented Feb 24, 2020

能提供一下具体文件吗,我没有找到

@rmb122
Copy link
Author

rmb122 commented Feb 25, 2020

https://github.com/liufee/cms/blob/master/backend/models/form/AdForm.php
这个的问题, 效验规则没有生效

@liufee
Copy link
Owner

liufee commented Mar 12, 2020

已解决

@liufee liufee closed this as completed Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants