mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix ONLYOFFICE/DocumentServer#472
This commit is contained in:
@ -750,7 +750,9 @@ exports.getSecret = getSecret;
|
||||
function fillJwtForRequest(opt_payload) {
|
||||
let data;
|
||||
if (cfgTokenOutboxInBody) {
|
||||
data = opt_payload || {};
|
||||
//todo refuse prototypes in opt_payload(they are simple getter/setter).
|
||||
//JSON.parse/stringify is more universal but Object.assign is enough for our inputs
|
||||
data = Object.assign(Object.create(null), opt_payload);
|
||||
} else {
|
||||
data = {};
|
||||
if(opt_payload){
|
||||
|
||||
Reference in New Issue
Block a user