浏览代码

Update PageController.class.php

star7th 5 年之前
父节点
当前提交
be08773655
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/Application/Api/Controller/PageController.class.php

+ 2 - 2
server/Application/Api/Controller/PageController.class.php

@@ -223,7 +223,7 @@ class PageController extends BaseController {
            return false;
         }
         
-        if (strstr(strtolower($_FILES['editormd-image-file']['name']), ".php") ) {
+        if (strstr(strip_tags(strtolower($_FILES['editormd-image-file']['name'])), ".php") ) {
             return false;
         }
 
@@ -274,7 +274,7 @@ class PageController extends BaseController {
            return false;
         }
         
-        if (strstr(strtolower($uploadFile['name']), ".php") ) {
+        if (strstr(strip_tags(strtolower($_FILES['editormd-image-file']['name'])), ".php") ) {
             return false;
         }