소스 검색

Add files via upload

Capitan Cloud 2 년 전
부모
커밋
e565ca602e
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      Private/scripts_ajax/putxml.php

+ 5 - 3
Private/scripts_ajax/putxml.php

@@ -34,11 +34,13 @@
 //
 // PARAMETER VALIDATION
 //
-$filename = filter_input(INPUT_POST, "f");
-$filename2 = $filename . ".xml";
+$filename = filter_input(INPUT_POST, "f")??"";
+$filename = strip_tags($filename);
 
-$xmlStr = filter_input(INPUT_POST, "xml");
+$filename2 = $filename . ".xml";
 
+$xmlStr = filter_input(INPUT_POST, "xml")??"";
+$xmlStr = strip_tags($xmlStr);
 
 // if the snip data folder doesn'exist I create it
 // with all the subfolders..