dashfolders: security for png rendering

This commit is contained in:
Daniel Lee
2017-06-22 01:23:36 +02:00
parent 659a59107e
commit f68d2816ab
3 changed files with 9 additions and 3 deletions

View File

@ -18,6 +18,8 @@ func RenderToPng(c *middleware.Context) {
Width: queryReader.Get("width", "800"),
Height: queryReader.Get("height", "400"),
OrgId: c.OrgId,
UserId: c.UserId,
OrgRole: c.OrgRole,
Timeout: queryReader.Get("timeout", "30"),
Timezone: queryReader.Get("tz", ""),
}