You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2016/11/02 14:18:16 UTC
allura git commit: Add rel=nofollow to links in user profiles
Repository: allura
Updated Branches:
refs/heads/master 37eaefb89 -> 623b2665e
Add rel=nofollow to links in user profiles
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/623b2665
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/623b2665
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/623b2665
Branch: refs/heads/master
Commit: 623b2665e4180b3496fcc9d678c85233018139ba
Parents: 37eaefb
Author: Dave Brondsema <da...@brondsema.net>
Authored: Mon Oct 31 14:59:05 2016 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Wed Nov 2 10:18:04 2016 -0400
----------------------------------------------------------------------
.../allura/ext/user_profile/templates/sections/personal-data.html | 2 +-
Allura/allura/ext/user_profile/templates/sections/social.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/623b2665/Allura/allura/ext/user_profile/templates/sections/personal-data.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/user_profile/templates/sections/personal-data.html b/Allura/allura/ext/user_profile/templates/sections/personal-data.html
index 4637a5d..5c9fc6e 100644
--- a/Allura/allura/ext/user_profile/templates/sections/personal-data.html
+++ b/Allura/allura/ext/user_profile/templates/sections/personal-data.html
@@ -63,7 +63,7 @@
<dt>Web Site{% if user.get_pref('webpages')|length > 1 %}s{% endif %}:</dt><dd>
<ol>
{% for webpage in user.get_pref('webpages') %}
- <li>{{webpage|urlize(60)}}</li>
+ <li>{{webpage|urlize(60,nofollow=True)}}</li>
{% endfor %}
</ol>
</dd>
http://git-wip-us.apache.org/repos/asf/allura/blob/623b2665/Allura/allura/ext/user_profile/templates/sections/social.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/user_profile/templates/sections/social.html b/Allura/allura/ext/user_profile/templates/sections/social.html
index 4d2ea8c..fe7eb97 100644
--- a/Allura/allura/ext/user_profile/templates/sections/social.html
+++ b/Allura/allura/ext/user_profile/templates/sections/social.html
@@ -33,7 +33,7 @@
{% block content %}
<dl>
{% for contact in user.get_pref('socialnetworks') %}
- <dt>{{ contact.socialnetwork }}</dt><dd>{{ contact.accounturl|urlize }}</dd>
+ <dt>{{ contact.socialnetwork }}</dt><dd>{{ contact.accounturl|urlize(nofollow=True) }}</dd>
{% else %}
<dd class="empty">No social networks entered.</dd>
{% endfor %}