[hackers] [surf] Changed character for non-encrypted page || Jens Nyberg

From: <git_AT_suckless.org>
Date: Tue, 12 Feb 2013 21:34:50 +0100

commit 24f0f831972ec19ac0663a1fbe00a280e736d4f5
Author: Jens Nyberg <jens.nyberg_AT_gmail.com>
Date: Tue Feb 12 21:26:24 2013 +0100

    Changed character for non-encrypted page
    
    -/T/U: No SSL, Trusted SSL, Untrusted SSL
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

diff --git a/surf.c b/surf.c
index 1c999dd..b36fc4a 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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' : '-';
 }
 
Received on Tue Feb 12 2013 - 21:34:50 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 21 2013 - 19:26:33 CET