File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
pfSense-pkg-API/files/usr/local Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ function revert($version) {
102102 if ($ headers && strpos ($ headers [0 ], '302 ' )) {
103103 echo "done. " .PHP_EOL ;
104104 echo shell_exec ("/usr/sbin/pkg delete -y pfSense-pkg-API " );
105- echo shell_exec ("/usr/sbin/pkg -C /dev/null add " . $ url );
105+ echo shell_exec ("/usr/sbin/pkg -C /dev/null add " . escapeshellarg ( $ url) );
106106 echo shell_exec ("/etc/rc.restart_webgui " );
107107 } else {
108108 echo "no package found. " .PHP_EOL ;
Original file line number Diff line number Diff line change 5959# On update POST, start the update process
6060if ($ _POST ["update " ] and !empty ($ _POST ["version " ])) {
6161 # Start the update process in the background and print notice
62- shell_exec ("nohup pfsense-api revert " .$ _POST ["version " ]." > /dev/null & " );
62+ shell_exec ("nohup pfsense-api revert " .escapeshellarg ( $ _POST ["version " ]) ." > /dev/null & " );
6363 print_apply_result_box (0 , "\nAPI update process has started and is running in the background. Check back in a few minutes. " );
6464}
6565
You can’t perform that action at this time.
0 commit comments