Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/config/policies/ drwxr-xr-x | |
| Viewing file: Select action/file-type: module.exports = async (ctx, next) => {
// if(ctx.is('multipart'))
// {
// const data = json.parse(ctx.request.header);
// data._state=ctx.header;
// ctx.request.header=json.stringify(data);
// }
// else
// {
// ctx.request.body._state=ctx.state;
// }
ctx.request.url=ctx.url;
if(ctx.request.url!=="/auth/local")
{
ctx.request.header=ctx.header.authorization;
ctx.request.method=ctx.method;
ctx.request.ip=ctx.ip;
ctx.request.path=ctx.path;
}
// console.log(ctx.request.url);
// console.log(ctx.request.body._header);
// console.log(ctx.request.path);
return await next();
}; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]-- |