diff options
author | Ermal <eri@pfsense.org> | 2013-01-05 16:59:01 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-05 16:59:01 +0000 |
commit | 9d584d5d92e7a87add867bbf7da2ab96a6c5efbd (patch) | |
tree | 60dba05bab7e933bf8140e1b25904be30e6c01a7 /etc | |
parent | e294adedc7b08f57371d95577fcc71c8d89e1643 (diff) | |
download | pfsense-9d584d5d92e7a87add867bbf7da2ab96a6c5efbd.zip pfsense-9d584d5d92e7a87add867bbf7da2ab96a6c5efbd.tar.gz |
Put protection for session functions even here
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.lib.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index 4d939f7..cc82bf0 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -520,7 +520,8 @@ function write_config($desc="Unknown", $backup = true) { if (!empty($_SERVER['REMOTE_ADDR'])) $username .= '@' . $_SERVER['REMOTE_ADDR']; - session_commit(); + if (!isset($argc)) + session_commit(); if($backup) backup_config(); |