{"action":"created","issue":{"url":"https://api.github.com/repos/IvanChou/aliyun-oss-support/issues/80","repository_url":"https://api.github.com/repos/IvanChou/aliyun-oss-support","labels_url":"https://api.github.com/repos/IvanChou/aliyun-oss-support/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/IvanChou/aliyun-oss-support/issues/80/comments","events_url":"https://api.github.com/repos/IvanChou/aliyun-oss-support/issues/80/events","html_url":"https://github.com/IvanChou/aliyun-oss-support/issues/80","id":377182244,"node_id":"MDU6SXNzdWUzNzcxODIyNDQ=","number":80,"title":"插件判断图片文件夹的替换太简单粗暴了吧？","user":{"login":"wangzhuo19820429","id":44753438,"node_id":"MDQ6VXNlcjQ0NzUzNDM4","avatar_url":"https://avatars0.githubusercontent.com/u/44753438?v=4","gravatar_id":"","url":"https://api.github.com/users/wangzhuo19820429","html_url":"https://github.com/wangzhuo19820429","followers_url":"https://api.github.com/users/wangzhuo19820429/followers","following_url":"https://api.github.com/users/wangzhuo19820429/following{/other_user}","gists_url":"https://api.github.com/users/wangzhuo19820429/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzhuo19820429/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzhuo19820429/subscriptions","organizations_url":"https://api.github.com/users/wangzhuo19820429/orgs","repos_url":"https://api.github.com/users/wangzhuo19820429/repos","events_url":"https://api.github.com/users/wangzhuo19820429/events{/privacy}","received_events_url":"https://api.github.com/users/wangzhuo19820429/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-04T18:50:16Z","updated_at":"2018-11-05T14:41:28Z","closed_at":null,"author_association":"NONE","body":"大概查看了下，我传图片的文件夹是upload，里面有系统默认的按年份和月份创建的文件夹。也有我其他插件创建的文件夹。处理图片很完美，但是替换路径太简单粗暴了，直接就把upload文件夹路径给换了，也不加个判断。导致了我其他插件放到里面的文件无法调用。例如Elementor插件，有一些CSS文件也是放在upload里面的。建议给加个选项，排查哪些文件夹路径不替换。我不会写插件，直接就修改了你的PHP文件，加了个判断。"},"comment":{"url":"https://api.github.com/repos/IvanChou/aliyun-oss-support/issues/comments/435898807","html_url":"https://github.com/IvanChou/aliyun-oss-support/issues/80#issuecomment-435898807","issue_url":"https://api.github.com/repos/IvanChou/aliyun-oss-support/issues/80","id":435898807,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTg5ODgwNw==","user":{"login":"wangzhuo19820429","id":44753438,"node_id":"MDQ6VXNlcjQ0NzUzNDM4","avatar_url":"https://avatars0.githubusercontent.com/u/44753438?v=4","gravatar_id":"","url":"https://api.github.com/users/wangzhuo19820429","html_url":"https://github.com/wangzhuo19820429","followers_url":"https://api.github.com/users/wangzhuo19820429/followers","following_url":"https://api.github.com/users/wangzhuo19820429/following{/other_user}","gists_url":"https://api.github.com/users/wangzhuo19820429/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzhuo19820429/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzhuo19820429/subscriptions","organizations_url":"https://api.github.com/users/wangzhuo19820429/orgs","repos_url":"https://api.github.com/users/wangzhuo19820429/repos","events_url":"https://api.github.com/users/wangzhuo19820429/events{/privacy}","received_events_url":"https://api.github.com/users/wangzhuo19820429/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T14:41:28Z","updated_at":"2018-11-05T14:41:28Z","author_association":"NONE","body":"刚才看了下Elementor的设置。对于CSS文件，可以用包含在页面里面实现。杜绝了和你的插件不兼容的问题，但是这样的增大单个页面的大小，而且很多重复数据下载。所以这只是治标不治本的方法，还是要从根本解决。目前我想到的办法就只能是通过设置白名单，排查UPLOAD下面某个文件夹的文件不上传。"}}
{"actor":{"display_login":"wangzhuo19820429"}}