diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-04 21:43:23 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-04 21:43:23 (EDT) |
commit | 6ce08e85c12897806f0bbe0670994721ee588241 (patch) | |
tree | e9605a52741982073247803d788e955900e2ffcd | |
parent | 2c96093cd1622e22c11b50d939cce33d752ce3ee (diff) | |
download | marquee-6ce08e85c12897806f0bbe0670994721ee588241.zip marquee-6ce08e85c12897806f0bbe0670994721ee588241.tar.gz marquee-6ce08e85c12897806f0bbe0670994721ee588241.tar.bz2 |
Revert "mq_web_view_normal_scheme_methods.rewrite_uri(): Hide query of about-scheme URIs"
This reverts commit 18bb954f220d97cf5d26a4a89088b6556b427563.
Wrong method, but nothing broke.
-rw-r--r-- | src/web-view-schemes/normal.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c index f6344f8..c4d42b8 100644 --- a/src/web-view-schemes/normal.c +++ b/src/web-view-schemes/normal.c @@ -76,16 +76,8 @@ static gchar * rewrite_uri(MqWebView G_GNUC_UNUSED *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar *uri) { - gchar *rw_uri; - gchar *query; - if (g_str_has_prefix(uri, "about:")) { - rw_uri = g_strconcat("mq-about:", uri + strlen("about:"), NULL); - query = strchr(rw_uri, '?'); - if (query) { - query[0] = '\0'; - } - return rw_uri; + return g_strconcat("mq-about:", uri + strlen("about:"), NULL); } else { return g_strdup(uri); } |