[med-svn] [mobyle] 01/03: Remove Google Analytics beacon

Andreas Tille tille at debian.org
Sat Dec 16 15:59:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository mobyle.

commit b35cf9f31e99ca39f7292ad2d27abd5a71bdde17
Author: Andreas Tille <tille at debian.org>
Date:   Sat Dec 16 16:43:34 2017 +0100

    Remove Google Analytics beacon
---
 debian/changelog             |  7 +++++++
 debian/patches/privacy.patch | 18 ++++++++++++++++++
 debian/patches/series        |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f471f05..7589039 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mobyle (1.5.5+dfsg-4) UNRELEASED; urgency=medium
+
+  * Remove Google Analytics beacon.
+    Closes: #884525
+
+ -- Andreas Tille <tille at debian.org>  Sat, 16 Dec 2017 16:41:35 +0100
+
 mobyle (1.5.5+dfsg-3) unstable; urgency=medium
 
   * Depends: s/python-imaging/python-pil/
diff --git a/debian/patches/privacy.patch b/debian/patches/privacy.patch
new file mode 100644
index 0000000..4ed1d5c
--- /dev/null
+++ b/debian/patches/privacy.patch
@@ -0,0 +1,18 @@
+Description: Remove Google Analytics beacon.
+Bug-Debian: https://bugs.debian.org/884525
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sat, 16 Dec 2017 16:41:35 +0100
+
+--- a/Src/Portal/htdocs/MobylePortal/js/mobyle_ga.js
++++ b/Src/Portal/htdocs/MobylePortal/js/mobyle_ga.js
+@@ -9,8 +9,5 @@ _gaq.push(['_setAccount', $('ga_code').v
+ _gaq.push(['_trackPageview']);
+ 
+ (function() {
+-  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+-  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+-  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
+ })();
+-});
+\ No newline at end of file
++});
diff --git a/debian/patches/series b/debian/patches/series
index aa08ede..ac4bdc6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 change_mobylehome
 defaultconfig
 mayhem.patch
+privacy.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mobyle.git



More information about the debian-med-commit mailing list