فهرست منبع

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