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..