tChanged character for non-encrypted page - surf - customized build of surf, the suckless webkit browser
 (HTM) git clone git://src.adamsgaard.dk/surf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 24f0f831972ec19ac0663a1fbe00a280e736d4f5
 (DIR) parent 3c1ed5d56af13f09a81beb00c59464972c36b2f0
 (HTM) Author: Jens Nyberg <jens.nyberg@gmail.com>
       Date:   Tue, 12 Feb 2013 21:26:24 +0100
       
       Changed character for non-encrypted page
       
       -/T/U: No SSL, Trusted SSL, Untrusted SSL
       
       Signed-off-by: Christoph Lohmann <20h@r-36.net>
       
       Diffstat:
         M surf.c                              |       8 +++++++-
       
       1 file changed, 7 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/surf.c b/surf.c
       t@@ -1064,7 +1064,13 @@ gettogglestat(Client *c){
        
        static void
        getpagestat(Client *c) {
       -        pagestat[0] = c->sslfailed ? 'U' : 'T';
       +        const char *uri = geturi(c);
       +
       +        if(strstr(uri, "https://") == uri)
       +                pagestat[0] = c->sslfailed ? 'U' : 'T';
       +        else
       +                pagestat[0] = '-';
       +
                pagestat[1] = usingproxy ? 'P' : '-';
        }