We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b27d62 commit f2b052eCopy full SHA for f2b052e
classes/Visualizer/Module.php
@@ -257,7 +257,7 @@ private function _getExcel( $rows, $filename ) {
257
if ( class_exists( 'PHPExcel' ) ) {
258
$doc = new PHPExcel();
259
$doc->getActiveSheet()->fromArray( $rows, null, 'A1' );
260
- $doc->getActiveSheet()->setTitle( $chart );
+ $doc->getActiveSheet()->setTitle( sanitize_title( $chart ) );
261
$doc = apply_filters( 'visualizer_excel_doc', $doc );
262
$writer = PHPExcel_IOFactory::createWriter( $doc, 'Excel2007' );
263
ob_start();
0 commit comments