[epiphany] ephy-uri-helpers: Small fixes in tracking removal code
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-uri-helpers: Small fixes in tracking removal code
- Date: Thu, 11 Sep 2014 03:49:01 +0000 (UTC)
commit d5e3f0b6dceaf22d03cc13ef633a93317100be6b
Author: Bastien Nocera <hadess hadess net>
Date: Thu Aug 7 22:09:00 2014 +0200
ephy-uri-helpers: Small fixes in tracking removal code
https://bugzilla.gnome.org/show_bug.cgi?id=734453
lib/ephy-uri-helpers.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-uri-helpers.c b/lib/ephy-uri-helpers.c
index aa8c2d2..f18d324 100644
--- a/lib/ephy-uri-helpers.c
+++ b/lib/ephy-uri-helpers.c
@@ -188,7 +188,7 @@ is_garbage (const char *name,
/**
* ephy_remove_tracking_from_uri:
- * @uri: a uri
+ * @uri_string: a uri
*
* Sanitize @uri to make sure it does not contain analytics tracking
* information. Inspired by the Firefox PureURL add-on:
@@ -203,7 +203,6 @@ ephy_remove_tracking_from_uri (const char *uri_string)
SoupURI *uri;
GList *items, *new_items, *l;
const char *query, *host;
- char *new_query;
gboolean has_garbage = FALSE;
char *ret = NULL;
@@ -231,6 +230,8 @@ ephy_remove_tracking_from_uri (const char *uri_string)
}
if (has_garbage) {
+ char *new_query;
+
new_items = g_list_reverse (new_items);
new_query = query_concat (new_items);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]