﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2602	[patch] add User Agent to broken link emails	ian@…	Adrian Holovaty	"i'm getting slammed by a bad bot.. 
this will give me some more information on what is causing the link error.
{{{
Index: common.py
===================================================================
--- common.py   (revision 3656)
+++ common.py   (working copy)
@@ -64,8 +64,9 @@
                 is_internal = referer and (domain in referer)
                 path = request.get_full_path()
                 if referer and not _is_ignorable_404(path) and (is_internal or '?' not in referer):
+                    ua = request.META.get('HTTP_USER_AGENT','-none-')
                     mail_managers(""Broken %slink on %s"" % ((is_internal and 'INTERNAL ' or ''), domain),
-                        ""Referrer: %s\nRequested URL: %s\n"" % (referer, request.get_full_path()))
+                        ""Referrer: %s\nRequested URL: %s\nUA: %s\n"" % (referer, request.get_full_path(),ua))
                 return response
 
         # Use ETags, if requested.
}}}
"	enhancement	closed	Core (Other)		normal	fixed	session handling		Unreviewed	1	0	0	0	0	0
