mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
replace 'possibly dangerous for some OSs' characters
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
var href = canvas.toDataURL('image/png');
|
||||
var a = document.createElement('a');
|
||||
a.href = href;
|
||||
var filenameSuffix = new Date().toISOString();
|
||||
var filenameSuffix = new Date().toISOString().replace(/:/g,'_').replace('Z', '');
|
||||
if (this.title) {
|
||||
filenameSuffix = this.title.text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user