diff options
Diffstat (limited to 'src/usr/local/www/status_ipsec_sad.php')
-rw-r--r-- | src/usr/local/www/status_ipsec_sad.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/status_ipsec_sad.php b/src/usr/local/www/status_ipsec_sad.php index 1d4ee91..7f080fd 100644 --- a/src/usr/local/www/status_ipsec_sad.php +++ b/src/usr/local/www/status_ipsec_sad.php @@ -41,10 +41,10 @@ include("head.inc"); $sad = ipsec_dump_sad(); /* delete any SA? */ -if ($_GET['act'] == "del") { +if ($_POST['act'] == "del") { $fd = @popen("/sbin/setkey -c > /dev/null 2>&1", "w"); if ($fd) { - fwrite($fd, "delete {$_GET['src']} {$_GET['dst']} {$_GET['proto']} {$_GET['spi']} ;\n"); + fwrite($fd, "delete {$_POST['src']} {$_POST['dst']} {$_POST['proto']} {$_POST['spi']} ;\n"); pclose($fd); sleep(1); } @@ -103,7 +103,7 @@ if (count($sad)) { $args .= "&proto=" . rawurlencode($sa['proto']); $args .= "&spi=" . rawurlencode("0x" . $sa['spi']); ?> - <a href="status_ipsec_sad.php?act=del&<?=$args?>"><i class="fa fa-trash" title="<?=gettext("Remove this SPD Entry")?>"></i></a> + <a href="status_ipsec_sad.php?act=del&<?=$args?>"><i class="fa fa-trash" title="<?=gettext("Remove this SPD Entry")?>" usepost></i></a> </td> </tr> |