{"id":2771,"date":"2019-06-03T11:26:23","date_gmt":"2019-06-03T03:26:23","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2771"},"modified":"2019-06-03T12:05:03","modified_gmt":"2019-06-03T04:05:03","slug":"%e7%bb%87%e6%a2%a6dedecms%e5%90%8e%e5%8f%b0%e6%96%87%e4%bb%b6%e4%bb%bb%e6%84%8f%e4%b8%8a%e4%bc%a0%e6%bc%8f%e6%b4%9e%e4%bf%ae%e5%a4%8d%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2771.html","title":{"rendered":"\u7ec7\u68a6dedecms\u540e\u53f0\u6587\u4ef6\u4efb\u610f\u4e0a\u4f20\u6f0f\u6d1e\u4fee\u590d\u65b9\u6cd5"},"content":{"rendered":"
\u6253\u5f00 \/dede\/media_add.php \u627e\u5230<\/p>\n
$fullfilename = $cfg_basedir.$filename;<\/code><\/pre>\n\u5927\u6982\u572870\u884c\uff0c\u5728\u5b83\u4e0a\u9762\u6dfb\u52a0<\/p>\n
if(preg_match('#\\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename)))\r\n{\r\n\tShowMsg(\"\u4f60\u6307\u5b9a\u7684\u6587\u4ef6\u540d\u88ab\u7cfb\u7edf\u7981\u6b62\uff01\",'javascript:;');\r\n\texit();\r\n}<\/code><\/pre>\nfile_class.php \u4efb\u610f\u6587\u4ef6\u4e0a\u4f20\u6f0f\u6d1e\u4fee\u590d<\/h2>\n
\u6253\u5f00 \/dede\/file_class.php \u627e\u5230<\/p>\n
else if(preg_match(\"\/\\.(\".$fileexp.\")\/i\",$filename))<\/code><\/pre>\n\u5927\u6982\u5728161\u884c<\/p>\n
\u4fee\u6539\u4e3a\uff1a<\/p>\n
else if(substr($filename, -strlen($fileexp))===$fileexp)<\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u7ec7\u68a6dedecms\u540e\u53f0\u6587\u4ef6\u4efb\u610f\u4e0a\u4f20\u6f0f\u6d1e\u4fee\u590d\u65b9\u6cd5 \u6253\u5f00 \/dede\/media_add.php \u627e\u5230 $full […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,928,929,858,180],"class_list":["post-2771","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-928","tag-929","tag-858","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2771"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2771\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}