Fixed decodeCookie()
Ylian Saint-Hilaire committed
Dec 12, 2019 at 11:03 UTC
fd2c9de22761eb34079f7311c58571b9219773f5
11 files changed
+47
-11
meshcentral.js
+1
-1
@@ -1858,7 +1858,7 @@ function CreateMeshCentralServer(config, args) {
1858
1859
// Decode a cookie back into an object using a key using AES256-GCM or AES128-CBC/HMAC-SHA386. Return null if it's not a valid cookie. (key must be 32 bytes or more)
1860
obj.decodeCookie = function (cookie, key, timeout) {
1861
- const r = obj.decodeCookieAESGCM(cookie, key, timeout);
1861
+ var r = obj.decodeCookieAESGCM(cookie, key, timeout);
1862
if (r == null) { r = obj.decodeCookieAESSHA(cookie, key, timeout); }
1863
if ((r != null) && (typeof r.once == 'string') && (r.once.length > 0)) {
1864
// This cookie must only be used once.
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "0.4.5-r",
3
+ "version": "0.4.5-s",
4
"keywords": [
5
"Remote Management",
6
"Intel AMT",
views/default-min.handlebars
+5
-1
@@ -3570,7 +3570,11 @@
3570
p13clearConsoleMsg();
3571
3572
// Device refresh plugin handler
3573
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
3573
+ if (pluginHandler != null) {
3574
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
3575
+ var lastTab = getstore('_curPluginPage', null);
3576
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
3577
+ }
3578
}
3579
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
3580
if (!panel) panel = 10;
views/translations/default-min_cs.handlebars
+5
-1
@@ -3570,7 +3570,11 @@
3570
p13clearConsoleMsg();
3571
3572
// Device refresh plugin handler
3573
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
3573
+ if (pluginHandler != null) {
3574
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
3575
+ var lastTab = getstore('_curPluginPage', null);
3576
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
3577
+ }
3578
}
3579
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
3580
if (!panel) panel = 10;
views/translations/default-min_fr.handlebars
+5
-1
@@ -3570,7 +3570,11 @@
3570
p13clearConsoleMsg();
3571
3572
// Device refresh plugin handler
3573
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
3573
+ if (pluginHandler != null) {
3574
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
3575
+ var lastTab = getstore('_curPluginPage', null);
3576
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
3577
+ }
3578
}
3579
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
3580
if (!panel) panel = 10;
views/translations/default-min_ja.handlebars
+5
-1
@@ -3570,7 +3570,11 @@
3570
p13clearConsoleMsg();
3571
3572
// Device refresh plugin handler
3573
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
3573
+ if (pluginHandler != null) {
3574
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
3575
+ var lastTab = getstore('_curPluginPage', null);
3576
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
3577
+ }
3578
}
3579
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
3580
if (!panel) panel = 10;
views/translations/default-min_pt.handlebars
+5
-1
@@ -3570,7 +3570,11 @@
3570
p13clearConsoleMsg();
3571
3572
// Device refresh plugin handler
3573
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
3573
+ if (pluginHandler != null) {
3574
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
3575
+ var lastTab = getstore('_curPluginPage', null);
3576
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
3577
+ }
3578
}
3579
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
3580
if (!panel) panel = 10;
views/translations/default_cs.handlebars
+5
-1
@@ -4579,7 +4579,11 @@
4579
p13clearConsoleMsg();
4580
4581
// Device refresh plugin handler
4582
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
4582
+ if (pluginHandler != null) {
4583
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
4584
+ var lastTab = getstore('_curPluginPage', null);
4585
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
4586
+ }
4587
}
4588
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
4589
if (!panel) panel = 10;
views/translations/default_fr.handlebars
+5
-1
@@ -4579,7 +4579,11 @@
4579
p13clearConsoleMsg();
4580
4581
// Device refresh plugin handler
4582
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
4582
+ if (pluginHandler != null) {
4583
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
4584
+ var lastTab = getstore('_curPluginPage', null);
4585
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
4586
+ }
4587
}
4588
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
4589
if (!panel) panel = 10;
views/translations/default_ja.handlebars
+5
-1
@@ -4579,7 +4579,11 @@
4579
p13clearConsoleMsg();
4580
4581
// Device refresh plugin handler
4582
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
4582
+ if (pluginHandler != null) {
4583
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
4584
+ var lastTab = getstore('_curPluginPage', null);
4585
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
4586
+ }
4587
}
4588
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
4589
if (!panel) panel = 10;
views/translations/default_pt.handlebars
+5
-1
@@ -4579,7 +4579,11 @@
4579
p13clearConsoleMsg();
4580
4581
// Device refresh plugin handler
4582
- if (pluginHandler != null) { pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event); }
4582
+ if (pluginHandler != null) {
4583
+ pluginHandler.callHook('onDeviceRefreshEnd', nodeid, panel, refresh, event);
4584
+ var lastTab = getstore('_curPluginPage', null);
4585
+ if (lastTab != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
4586
+ }
4587
}
4588
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
4589
if (!panel) panel = 10;