diff options
author | Ermal <eri@pfsense.org> | 2013-01-04 08:43:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-04 08:43:54 +0000 |
commit | 59d765707666ea046f59a3c20602b29b74f02ff9 (patch) | |
tree | 7ab99a0be75f8748bf8d8c89580afe7ff22b9d18 /usr/local/www/upload_progress.php | |
parent | fed246dfca6c8041c5ec2b127911895adb6dc5de (diff) | |
download | pfsense-59d765707666ea046f59a3c20602b29b74f02ff9.zip pfsense-59d765707666ea046f59a3c20602b29b74f02ff9.tar.gz |
Always commit the session fast to allow other consumers to proceed to their requests. This unbreaks now the lock up the GUI had allowing only one action from same source per time. Now even if you run a command that blocks indefinitely for example the GUI want lock anymore but allow you to proceed to other actions. Manual cherry-pick of 4111fcf5307829b19b95fbb499addddff46264af
Diffstat (limited to 'usr/local/www/upload_progress.php')
-rw-r--r-- | usr/local/www/upload_progress.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/upload_progress.php b/usr/local/www/upload_progress.php index 344ae67..812f7b7 100644 --- a/usr/local/www/upload_progress.php +++ b/usr/local/www/upload_progress.php @@ -38,12 +38,16 @@ include("guiconfig.inc"); +if (!session_id()) + session_start(); + // sanitize the ID value $id = $_SESSION['uploadid']; if (!$id) { echo gettext("Sorry, we could not find an uploadid code."); exit; } +session_commit(); // retrieve the upload data from APC $info = uploadprogress_get_info($id); |