Browse Source

Update PageController.class.php

star7th 5 năm trước cách đây
mục cha
commit
be08773655

+ 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;
         }