7 Commits

Author SHA1 Message Date
Christoph Lohmann 3393ded725 Bumping up to 0.7 for release. 2015-12-19 15:59:30 +01:00
Christoph Lohmann cd7f831776 Remove unncessary includes. 2015-12-17 23:38:51 +01:00
Ivan Tham 86efaf8093 proxy-uri -> proxy-resolver for no_proxy; add #inc
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2015-12-17 23:36:56 +01:00
Ivan Tham 9fa4ffef72 Fix title handling
1. file:/// stay the same when you navigate
    2. Fix "http://~" to "file://~" in home dir
    3. Expands "file://~" to "file://home/user"

Thanks to quinq for fixing the issue #1 in commit 934705c in surf2.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2015-12-12 11:54:28 +01:00
Michael Stevens 002e82d188 Fix spelling of otherwise in surf.1
Add more spelling to surf.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2015-12-08 18:26:30 +01:00
Alexander Huemer bae5a785b3 remove duplicate header inclusion of string.h
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2015-11-22 12:34:54 +01:00
Ivan Tham b7a359a84f Fix cookies wording
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2015-11-18 08:58:18 +01:00
4 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ static gfloat zoomlevel = 1.0; /* Default zoom level */
/* Soup default features */ /* Soup default features */
static char *cookiefile = "~/.surf/cookies.txt"; static char *cookiefile = "~/.surf/cookies.txt";
static char *cookiepolicies = "Aa@"; /* A: accept all; a: accept nothing, static char *cookiepolicies = "Aa@"; /* A: accept all; a: accept nothing,
* @: accept no third party */ * @: accept all except third party */
static char *cafile = "/etc/ssl/certs/ca-certificates.crt"; static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
static Bool strictssl = FALSE; /* Refuse untrusted SSL connections */ static Bool strictssl = FALSE; /* Refuse untrusted SSL connections */
static time_t sessiontime = 3600; static time_t sessiontime = 3600;
+1 -1
View File
@@ -1,5 +1,5 @@
# surf version # surf version
VERSION = 0.6 VERSION = 0.7
# Customize below to fit your system # Customize below to fit your system
+8 -1
View File
@@ -225,7 +225,7 @@ page.
Toggle fullscreen mode. Toggle fullscreen mode.
.SH INDICATORS OF OPERATION .SH INDICATORS OF OPERATION
Surf is showing indicators of operation in front of the site title. Surf is showing indicators of operation in front of the site title.
For all indicators, unless otherwsie specified, a lower case letter means disabled and an upper case letter means enabled. For all indicators, unless otherwise specified, a lower case letter means disabled and an upper case letter means enabled.
.TP .TP
.B A .B A
all cookies accepted all cookies accepted
@@ -283,6 +283,13 @@ string
.TP .TP
.B http_proxy .B http_proxy
If this variable is set and not empty upon startup, surf will use it as the http proxy If this variable is set and not empty upon startup, surf will use it as the http proxy
.TP
.B no_proxy
If both http_proxy is set and no_proxy contain a
.BR comma-separated
list of domain extensions and both is not empty upon startup, proxy will
.BR not
be used for each of the elements in no_proxy.
.SH PLUGINS .SH PLUGINS
For using plugins in surf, first determine your running architecture. Then get For using plugins in surf, first determine your running architecture. Then get
the appropriate plugin for that architecture and copy it to the appropriate plugin for that architecture and copy it to
+12 -7
View File
@@ -17,14 +17,14 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <webkit/webkit.h> #include <webkit/webkit.h>
#include <glib/gstdio.h>
#include <JavaScriptCore/JavaScript.h> #include <JavaScriptCore/JavaScript.h>
#include <sys/file.h> #include <sys/file.h>
#include <libgen.h> #include <libgen.h>
#include <stdarg.h> #include <stdarg.h>
#include <regex.h> #include <regex.h>
#include <pwd.h> #include <pwd.h>
#include <string.h> #include <glib.h>
#include <glib/gstdio.h>
#include "arg.h" #include "arg.h"
@@ -803,6 +803,7 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c)
& SOUP_MESSAGE_CERTIFICATE_TRUSTED); & SOUP_MESSAGE_CERTIFICATE_TRUSTED);
} }
setatom(c, AtomUri, uri); setatom(c, AtomUri, uri);
c->title = copystr(&c->title, uri);
if (enablestyle) if (enablestyle)
setstyle(c, getstyle(uri)); setstyle(c, getstyle(uri));
@@ -1290,9 +1291,9 @@ void
setup(void) setup(void)
{ {
int i; int i;
char *proxy, *new_proxy; char *proxy, *new_proxy, *no_proxy, **new_no_proxy;
char *styledirfile, *stylepath; char *styledirfile, *stylepath;
SoupURI *puri; GProxyResolver *pr;
SoupSession *s; SoupSession *s;
GError *error = NULL; GError *error = NULL;
@@ -1367,15 +1368,19 @@ setup(void)
/* proxy */ /* proxy */
if ((proxy = getenv("http_proxy")) && strcmp(proxy, "")) { if ((proxy = getenv("http_proxy")) && strcmp(proxy, "")) {
new_proxy = g_strrstr(proxy, "http://") new_proxy = g_strrstr(proxy, "http://")
|| g_strrstr(proxy, "https://")
|| g_strrstr(proxy, "socks://") || g_strrstr(proxy, "socks://")
|| g_strrstr(proxy, "socks4://") || g_strrstr(proxy, "socks4://")
|| g_strrstr(proxy, "socks4a://")
|| g_strrstr(proxy, "socks5://") || g_strrstr(proxy, "socks5://")
? g_strdup(proxy) ? g_strdup(proxy)
: g_strdup_printf("http://%s", proxy); : g_strdup_printf("http://%s", proxy);
puri = soup_uri_new(new_proxy); new_no_proxy = ((no_proxy = getenv("no_proxy")) && strcmp(no_proxy, ""))
g_object_set(G_OBJECT(s), "proxy-uri", puri, NULL); ? g_strsplit(no_proxy, ",", -1) : NULL;
soup_uri_free(puri); pr = g_simple_proxy_resolver_new(new_proxy, new_no_proxy);
g_object_set(G_OBJECT(s), "proxy-resolver", pr, NULL);
g_free(new_proxy); g_free(new_proxy);
g_strfreev(new_no_proxy);
usingproxy = 1; usingproxy = 1;
} }
} }