Browse Source

Update PageController.class.php

star7th 5 years ago
parent
commit
be08773655
1 changed files with 2 additions and 2 deletions
  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;
         }