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 15:43:18 +0300
committerWolFi <wolfi@wolfi.es>2018-12-16 15:43:18 +0300
commit7deb663a110dec2f59a1e80f34a1d9f5c91ced4c (patch)
tree103f028c0f0e09c34c74cffb5aadc756527fa0f1 /js
parent4f00a9dc3032bb5d5c2704117e216719c6a7b43d (diff)
parentf08b3b1b69ad9f2beb650322e49f89e098ddb005 (diff)
Merge branch 'marius-wieschollek-PASSMAN-419' into feature/merges_v2.2.0
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 = {