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

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorWolFi <wolfi@wolfi.es>2018-12-16 14:15:20 +0300
committerWolFi <wolfi@wolfi.es>2018-12-16 14:15:20 +0300
commitf08b3b1b69ad9f2beb650322e49f89e098ddb005 (patch)
tree32fc070ef899acbc92769191985ee7668cf247bc /js
parentc476e9eec2bef14c71d4a0edbbcb840dac34116e (diff)
parent47787df5032c8cf7a6d16fe5706bb9449005701e (diff)
Merge branch 'PASSMAN-419' of https://github.com/marius-wieschollek/passman into marius-wieschollek-PASSMAN-419
Diffstat (limited to 'js')
-rw-r--r--js/exporters/exporter-csv.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/exporters/exporter-csv.js b/js/exporters/exporter-csv.js
index 1c08d889..44d906a5 100644
--- a/js/exporters/exporter-csv.js
+++ b/js/exporters/exporter-csv.js
@@ -47,7 +47,7 @@ PassmanExporter.csv.export = function (credentials, FileService, EncryptService)
_tags.push(_credential[field][t].text);
}
var tag_data = '[' + _tags.join(",") + ']';
- row_data.push('"' + tag_data + '"');
+ row_data.push('"' + tag_data.replaceAll('"', '""') + '"');
}
else if (field == 'custom_fields' || field == 'files') {
var _fields = JSON.stringify(_credential[field]);
@@ -55,7 +55,7 @@ PassmanExporter.csv.export = function (credentials, FileService, EncryptService)
row_data.push('"' + _fields + '"');
}
else {
- row_data.push('"' + _credential[field] + '"');
+ row_data.push('"' + _credential[field].replaceAll('"', '""') + '"');
}
}
var progress = {