summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <none@none>2012-07-02 20:35:50 +0200
committerportix <none@none>2012-07-02 20:35:50 +0200
commit93822b6056c9606cc4c10f71e0dcc6d1e1debe2d (patch)
treed6549f7aeb1760a25474f55fcaf999ad3b50ea18
parentca4cdefacb0892b0257628e8320f1944d9cee576 (diff)
downloaddwb-93822b6056c9606cc4c10f71e0dcc6d1e1debe2d.zip
Don't unescape uri if it contains \\n, \\r or \\f"
-rw-r--r--src/dwb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index b3f87651..9f854983 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -503,7 +503,7 @@ dwb_update_uri(GList *gl) {
View *v = VIEW(gl);
const char *uri = webkit_web_view_get_uri(CURRENT_WEBVIEW());
- char *decoded = g_uri_unescape_string(uri, NULL);
+ char *decoded = g_uri_unescape_string(uri, "\n\r\f");
DwbColor *uricolor;
switch(v->status->ssl) {
case SSL_TRUSTED: uricolor = &dwb.color.ssl_trusted; break;