mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only mount rw on $_POST
This commit is contained in:
parent
7955cde8a5
commit
61a90ed590
@ -54,7 +54,8 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
|
||||
unset($_POST['txtCommand']);
|
||||
}
|
||||
|
||||
conf_mount_rw();
|
||||
if($_POST)
|
||||
conf_mount_rw();
|
||||
|
||||
// Function: is Blank
|
||||
// Returns true or false depending on blankness of argument.
|
||||
@ -321,6 +322,7 @@ document.forms[0].txtCommand.focus();
|
||||
|
||||
<?php
|
||||
|
||||
conf_mount_ro();
|
||||
if($_POST)
|
||||
conf_mount_ro();
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user