Explorar el Código

Update PageController.class.php

star7th hace 6 años
padre
commit
be08773655
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
            return false;
         }
         }
         
         
-        if (strstr(strtolower($_FILES['editormd-image-file']['name']), ".php") ) {
+        if (strstr(strip_tags(strtolower($_FILES['editormd-image-file']['name'])), ".php") ) {
             return false;
             return false;
         }
         }
 
 
@@ -274,7 +274,7 @@ class PageController extends BaseController {
            return false;
            return false;
         }
         }
         
         
-        if (strstr(strtolower($uploadFile['name']), ".php") ) {
+        if (strstr(strip_tags(strtolower($_FILES['editormd-image-file']['name'])), ".php") ) {
             return false;
             return false;
         }
         }