Skip to content

Commit 09fbe9b

Browse files
Merge pull request #404 from jaredhendrickson13/next_patch
v1.6.4 Fixes
2 parents 83505d5 + ae65c92 commit 09fbe9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pfSense-pkg-API/files/usr/local/share/pfSense-pkg-API/manage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

pfSense-pkg-API/files/usr/local/www/api/update/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# On update POST, start the update process
6060
if ($_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

0 commit comments

Comments
 (0)