Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-04-07 04:05:52 +0300
committermattab <matthieu.aubry@gmail.com>2016-04-07 04:05:52 +0300
commit1809a57381b37b68a3bcc8f50845b61e38e51d6d (patch)
tree2422e615a193d65ae6f7d10ddadc6aa280e4991d /core
parent0d64cd584601c003d4d03487e540d6274e8b5962 (diff)
Excel/Libreoffice formulas can also start with @ character.
Diffstat (limited to 'core')
-rw-r--r--core/DataTable/Renderer/Csv.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/DataTable/Renderer/Csv.php b/core/DataTable/Renderer/Csv.php
index 070cfdefa5..15d6b8ce74 100644
--- a/core/DataTable/Renderer/Csv.php
+++ b/core/DataTable/Renderer/Csv.php
@@ -268,7 +268,8 @@ class Csv extends Renderer
protected function formatFormulas($value)
{
- $formulaStartsWith = array('=', '+', '-');
+ // Excel / Libreoffice formulas may start with one of these characters
+ $formulaStartsWith = array('=', '+', '-', '@');
// remove first % sign
$count = 1;