[cimg] 11/11: Enhance script to avoid privacy violation
Andreas Tille
tille at debian.org
Tue May 3 09:03:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository cimg.
commit 1cbca965b9771b0ee1189528e26f9800e8caefc4
Author: Andreas Tille <tille at debian.org>
Date: Tue May 3 11:00:49 2016 +0200
Enhance script to avoid privacy violation
---
debian/remove_privacy_violating_js_code | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/remove_privacy_violating_js_code b/debian/remove_privacy_violating_js_code
index e513122..443aa4e 100755
--- a/debian/remove_privacy_violating_js_code
+++ b/debian/remove_privacy_violating_js_code
@@ -17,6 +17,9 @@ sed -i -e '/<\!-- Start of StatCounter Code -->/,/<\!-- End Google Analytics -->
-e '/<a href="http:\/\/sourceforge.net\/donate\/index.php?group_id=[0-9]\+"><img src="http:\/\/images.sourceforge.net\/images\/project-support.jpg".* alt="Support This Project".*a>/d' \
-e '/<link rel="shortcut icon" type="image\/x-icon" href="http:\/\/cimg.sourceforge.net\/favicon.ico"><\/link>/d' \
-e 's/<img src="http:\/\/sourceforge.net\/sflogo.php[^>]\+><\/img>/SourceForge/' \
+ -e 's?href="http://cimg.eu/favicon.ico">?href="favicon.ico">?' \
+ -e 's?img src="http://cimg.eu/img/CImgLogo2.jpg"?img src="img/CImgLogo2.jpg"?' \
+ -e 's?<img src="http://images.sourceforge.net/images/project-support.jpg" width=.* height=.* border=.* alt="Support This Project" />?Support This Project?' \
$1
# use local logo
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cimg.git
More information about the debian-science-commits
mailing list