You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/10/15 22:07:06 UTC
svn commit: r321481 - in /httpd/mod_mbox/trunk: data/archives.js
module-2.0/mod_mbox_mime.c module-2.0/mod_mbox_out.c
Author: pquerna
Date: Sat Oct 15 13:07:04 2005
New Revision: 321481
URL: http://svn.apache.org/viewcvs?rev=321481&view=rev
Log:
Add rel="nofollow" so that search engines don't index mime parts, or the raw message.
Modified:
httpd/mod_mbox/trunk/data/archives.js
httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
Modified: httpd/mod_mbox/trunk/data/archives.js
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/data/archives.js?rev=321481&r1=321480&r2=321481&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/data/archives.js (original)
+++ httpd/mod_mbox/trunk/data/archives.js Sat Oct 15 13:07:04 2005
@@ -338,7 +338,7 @@
if (length) {
str += '<a href="' + _baseURI + _mbox + '/raw/' + id +
- mime[i].getAttribute('link') + '" target="_blank">';
+ mime[i].getAttribute('link') + '" rel="nofollow">';
}
var name = mime[i].getAttribute('name');
@@ -427,7 +427,7 @@
'</ul></td></tr>';
str += '<tr class="raw"><td class="left"></td><td class="right">' +
- '<a href="' + _baseURI + _mbox + '/raw/' + id + '" target="_blank">View raw message</a></td></tr>';
+ '<a href="' + _baseURI + _mbox + '/raw/' + id + '" rel="nofollow">View raw message</a></td></tr>';
str += '</tbody>';
msgview.innerHTML = str;
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c?rev=321481&r1=321480&r2=321481&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Sat Oct 15 13:07:04 2005
@@ -336,7 +336,7 @@
ap_rputs("<li>", r);
if (m->body_len) {
- ap_rprintf(r, "<a href=\"%s\">", link);
+ ap_rprintf(r, "<a rel=\"nofollow\" href=\"%s\">", link);
}
if (m->content_name) {
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c?rev=321481&r1=321480&r2=321481&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c Sat Oct 15 13:07:04 2005
@@ -1169,7 +1169,7 @@
ap_rprintf(r, " <tr class=\"raw\">\n"
" <td class=\"left\"></td>\n"
- " <td class=\"right\"><a href=\"%s/raw/%s\">View raw message</a></td>\n"
+ " <td class=\"right\"><a href=\"%s/raw/%s\" rel=\"nofollow\">View raw message</a></td>\n"
" </tr>\n", baseURI, URI_ESCAPE_OR_BLANK(r->pool, m->msgID));
ap_rputs(" </tbody>\n", r);