Explorar o código

Add files via upload

Capitan Cloud %!s(int64=2) %!d(string=hai) anos
pai
achega
e565ca602e
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  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..