summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorJens Nyberg <jens.nyberg@gmail.com>2013-02-12 21:26:24 +0100
committerChristoph Lohmann <20h@r-36.net>2013-02-12 21:32:07 +0100
commit24f0f831972ec19ac0663a1fbe00a280e736d4f5 (patch)
tree7a4f9396cfd3f67544ca9396d56c3cd041524bca /surf.c
parent3c1ed5d56af13f09a81beb00c59464972c36b2f0 (diff)
downloadsurf-24f0f831972ec19ac0663a1fbe00a280e736d4f5.tar.gz
surf-24f0f831972ec19ac0663a1fbe00a280e736d4f5.tar.bz2
surf-24f0f831972ec19ac0663a1fbe00a280e736d4f5.zip
Changed character for non-encrypted page
-/T/U: No SSL, Trusted SSL, Untrusted SSL Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index 1c999dd..b36fc4a 100644
--- 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' : '-';
}