[hackers] [surf] Check for about: too. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Wed, 27 Jan 2016 06:45:07 +0100 (CET)

commit fd6e80a2796505d97775fba4e40a943e59678f2b
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Wed Jan 27 06:44:31 2016 +0100
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Wed Jan 27 06:44:31 2016 +0100

    Check for about: too.
    
    Thanks to Claudio Alessi <smoppy_AT_gmail.com>!

diff --git a/surf.c b/surf.c
index 108485b..23c49bd 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -840,7 +840,7 @@ loaduri(Client *c, const Arg *arg)
                 u = g_strdup_printf("file://%s", rp);
                 free(rp);
         } else {
- u = g_strrstr(uri, "://") ? g_strdup(uri)
+ u = g_strrstr(uri, "://") || g_str_has_prefix(uri, "about:") ? g_strdup(uri)
                     : g_strdup_printf("http://%s", uri);
         }
 
Received on Wed Jan 27 2016 - 06:45:07 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 27 2016 - 06:48:34 CET