Changed character for non-encrypted page
authorJens Nyberg <jens.nyberg@gmail.com>
Tue, 12 Feb 2013 20:26:24 +0000 (21:26 +0100)
committerChristoph Lohmann <20h@r-36.net>
Tue, 12 Feb 2013 20:32:07 +0000 (21:32 +0100)
-/T/U: No SSL, Trusted SSL, Untrusted SSL

Signed-off-by: Christoph Lohmann <20h@r-36.net>
surf.c

diff --git a/surf.c b/surf.c
index 1c999dd..b36fc4a 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -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' : '-';
 }