[Xfce4-commits] <midori:master> Assume 'http://' if adding address without scheme to speed dial

Christian Dywan noreply at xfce.org
Sun Jun 6 23:56:01 CEST 2010


Updating branch refs/heads/master
         to 31885fe2be99fbe7acd78f658e01db8d98b17b16 (commit)
       from 5f790a7217210ceacc78a86256b170ae87f6fc36 (commit)

commit 31885fe2be99fbe7acd78f658e01db8d98b17b16
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Jun 6 23:29:08 2010 +0200

    Assume 'http://' if adding address without scheme to speed dial

 data/speeddial-head.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/data/speeddial-head.html b/data/speeddial-head.html
index 0f5b51c..edf8911 100644
--- a/data/speeddial-head.html
+++ b/data/speeddial-head.html
@@ -210,6 +210,8 @@
 
         var url = prompt ("{enter_shortcut_address}", "http://");
         if (!url) return false;
+        if (url.indexOf ("://") == -1)
+            url = "http://" + url;
 
         var name = prompt ("{enter_shortcut_name}", "");
         if (!name) name = "";



More information about the Xfce4-commits mailing list