Commit 4f704378 authored by Laurent Montel's avatar Laurent Montel 😁

Add support for ftp/ftps

parent 0d3af721
......@@ -91,7 +91,9 @@ void InsertShorturlPluginEditorInterface::exec()
{
QTextCursor textCursor = richTextEditor()->textCursor();
QString urlStr = textCursor.selectedText();
if (urlStr.startsWith(QLatin1String("http:")) || urlStr.startsWith(QLatin1String("https:"))) {
if (urlStr.startsWith(QLatin1String("http:")) || urlStr.startsWith(QLatin1String("https:"))
|| urlStr.startsWith(QLatin1String("ftp:")) || urlStr.startsWith(QLatin1String("ftps:"))) {
if (!mCurrentEngine) {
qCWarning(KMAIL_INSERTSHORTURL_LOG) << "Current Engine not defined";
return;
......
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