Commit d9e16231 authored by Chenu Denis's avatar Chenu Denis

[fix] Open base dir restriction and XLSXWriter

parent 0baf77e4
......@@ -13,7 +13,7 @@
$config['versionnumber'] = "2.6.4";
$config['dbversionnumber'] = 184;
$config['buildnumber'] = 'SondagesPro 1.4.0';
$config['buildnumber'] = 'SondagesPro 1.5.0';
$config['updatable'] = false;
return $config;
......@@ -44,7 +44,7 @@ class ExcelWriter extends Writer
$this->xlsFilename = "results-survey".$survey->id.".xlsx";
$this->workbook = new XLSXWriter();
$this->workbook->setTempDir(Yii::app()->getRuntimePath());
$worksheetName = $survey->languageSettings['surveyls_title'];
$worksheetName=substr(str_replace(array('*', ':', '/', '\\', '?', '[', ']'),array(' '),$worksheetName),0,31); // Remove invalid characters
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment