From f07cb7ce38788e165a171bc8143386c909b87b7a Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 9 Jan 2010 00:58:24 -0500 Subject: fix Firewall Logs widget settings save. Ticket #285 --- usr/local/www/widgets/widgets/log.widget.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php index e22ba07..c46a6ab 100644 --- a/usr/local/www/widgets/widgets/log.widget.php +++ b/usr/local/www/widgets/widgets/log.widget.php @@ -30,7 +30,6 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - require_once("guiconfig.inc"); require_once("pfsense-utils.inc"); require_once("functions.inc"); @@ -41,6 +40,15 @@ require_once("filter_log.inc"); if($_POST['filterlogentries']) { $config['widgets']['filterlogentries'] = $_POST['filterlogentries']; write_config("Saved Filter Log Entries via Dashboard"); + $filename = $_SERVER['HTTP_REFERER']; + if(headers_sent($file, $line)){ + echo ''; + echo ''; + } Header("Location: /"); } -- cgit v1.1