@@ -607,7 +607,6 @@ function showImages() {
607607 $ root = APP_REPO_PATH ;
608608
609609 //subpath
610- ///$subpath = mb_substr((string)filter_input(INPUT_GET, "path", FILTER_SANITIZE_STRING), 0, 500);
611610 $ subpath = $ curPath ;
612611 if ($ subpath !=="" && is_dir ($ subpath )) {
613612 $ path = $ subpath ;
@@ -843,16 +842,25 @@ function myExecOpenPicCommand() {
843842 }
844843
845844
846- $ password = filter_input (INPUT_POST , "Password " );
845+ $ password = filter_input (INPUT_POST , "Password " )??"" ;
846+ $ password = strip_tags ($ password );
847847 if ($ password ==PHP_STR ) {
848- $ password = filter_input (INPUT_POST , "Password2 " );
848+ $ password = filter_input (INPUT_POST , "Password2 " )??"" ;
849+ $ password = strip_tags ($ password );
849850 }
850- $ command = filter_input (INPUT_POST , "CommandLine " );
851851
852- $ pwd = filter_input (INPUT_POST , "pwd " );
853- $ hideSplash = filter_input (INPUT_POST , "hideSplash " );
854- $ hideHCSplash = filter_input (INPUT_POST , "hideHCSplash " );
855-
852+ $ command = filter_input (INPUT_POST , "CommandLine " )??"" ;
853+ $ command = strip_tags ($ command );
854+
855+ $ pwd = filter_input (INPUT_POST , "pwd " )??"" ;
856+ $ pwd = strip_tags ($ pwd );
857+
858+ $ hideSplash = filter_input (INPUT_POST , "hideSplash " )??"" ;
859+ $ hideSplash = strip_tags ($ hideSplash );
860+
861+ $ hideHCSplash = filter_input (INPUT_POST , "hideHCSplash " )??"" ;
862+ $ hideHCSplash = strip_tags ($ hideHCSplash );
863+
856864 if ($ password !== PHP_STR ) {
857865 $ hash = hash ("sha256 " , $ password . APP_SALT , false );
858866
@@ -1236,6 +1244,6 @@ function startApp() {
12361244<?php if (file_exists (APP_PATH . DIRECTORY_SEPARATOR . "metrics.html " )): ?>
12371245<?php include (APP_PATH . DIRECTORY_SEPARATOR . "metrics.html " ); ?>
12381246<?php endif ; ?>
1239-
1247+
12401248</body>
12411249</html>
0 commit comments