From 8f0eafd48d5cd7ffc5e0cf9a3f4c040659a08948 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 26 Jun 2017 10:26:57 +0200 Subject: [PATCH] fix(SettingsAdvanced): test url string on logs uploaded --- ui/views/App/Settings/SettingsAdvanced.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/views/App/Settings/SettingsAdvanced.js b/ui/views/App/Settings/SettingsAdvanced.js index dd6caa745..f199d9a77 100644 --- a/ui/views/App/Settings/SettingsAdvanced.js +++ b/ui/views/App/Settings/SettingsAdvanced.js @@ -19,7 +19,7 @@ function cleanLogs () { } function handleLogsUploaded (url) { - if (url.length) { + if (url.length && Utils.startsWith(url, 'http')) { sendLogsBlock.stop('') Qt.openUrlExternally( 'mailto:' + encodeURIComponent(Linphone.SettingsModel.logsEmail) +