BREAKING CHANGES: (for SeCuRiTy):
By default: - `ssid_sessions[socket.ssid]` is now `session_data` - `require` is no longer allowed in user scripts To access global `socket_sessions` and `ssid_sessions`, as well as `require` additional modules, you must set `privileged: true` for the specific service. See `config.json`.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
// remove restrictions once this page is shown, since the user will be 'trapped' anyway
|
||||
ssid_sessions[socket.ssid].disableLockdown();
|
||||
ssid_sessions[socket.ssid].delete("wtv-my-disk-sucks-sucks-sucks");
|
||||
ssid_sessions[socket.ssid].baddisk = false;
|
||||
session_data.disableLockdown();
|
||||
session_data.delete("wtv-my-disk-sucks-sucks-sucks");
|
||||
session_data.baddisk = false;
|
||||
|
||||
headers = `200 OK
|
||||
Content-type: text/html`;
|
||||
|
||||
Reference in New Issue
Block a user