[network/konversation] /: Use https with tinyurl.com

Friedrich W. H. Kossebau null at kde.org
Wed Oct 28 11:00:03 GMT 2020


Git commit b6b7ebefad2d14dabeb94682c7e891baf71f0687 by Friedrich W. H. Kossebau.
Committed on 28/10/2020 at 10:59.
Pushed by kossebau into branch 'master'.

Use https with tinyurl.com

M  +2    -2    data/scripts/tinyurl
M  +1    -1    doc/index.docbook

https://invent.kde.org/network/konversation/commit/b6b7ebefad2d14dabeb94682c7e891baf71f0687

diff --git a/data/scripts/tinyurl b/data/scripts/tinyurl
index cb4d1eeb..d101d05b 100755
--- a/data/scripts/tinyurl
+++ b/data/scripts/tinyurl
@@ -13,9 +13,9 @@ NICK="$4"
 
 if test ! -z $URL; then
   if test $(which curl); then
-    TINYURL="$(curl -s -i http://tinyurl.com/api-create.php?url=$URL|tail -1)"
+    TINYURL="$(curl -s -i https://tinyurl.com/api-create.php?url=$URL|tail -1)"
   else
-    TINYURL="$(wget -T10 -t2 -qO- http://tinyurl.com/api-create.php?url=$URL|tail -1)"
+    TINYURL="$(wget -T10 -t2 -qO- https://tinyurl.com/api-create.php?url=$URL|tail -1)"
   fi
 else qdbus org.kde.konversation /irc error "No url given: usage is \"/tinyurl URL [NickName]\""
     exit 1
diff --git a/doc/index.docbook b/doc/index.docbook
index b0f6a86c..e2599c05 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -2725,7 +2725,7 @@ formatting them appropriately.</para>
 <para>This script uses Tinyurl's api to turn the given link into a tinyurl that is then sent to the current channel tab.</para>
 <para>Example: To give someone a short link to https://konversation.kde.org</para>
 <para><userinput><command>/exec </command> <replaceable>tinyurl https://konversation.kde.org</replaceable></userinput></para>
-<para>Sample output: <replaceable>http://tinyurl.com/y4rk8wa3</replaceable></para>
+<para>Sample output: <replaceable>https://tinyurl.com/y4rk8wa3</replaceable></para>
 </listitem>
 </varlistentry>
 


More information about the kde-doc-english mailing list