Ticket #10214: SBLE_internal.diff
File SBLE_internal.diff, 1013 bytes (added by , 16 years ago) |
---|
-
django/middleware/common.py
88 88 referer = request.META.get('HTTP_REFERER', None) 89 89 is_internal = _is_internal_request(domain, referer) 90 90 path = request.get_full_path() 91 if referer and not _is_ignorable_404(path) and (is_internal or '?' not in referer): 91 if settings.SEND_BROKEN_LINK_EMAILS == 'internal': 92 cond = is_internal 93 else: 94 cond = (is_internal or '?' not in referer): 95 if referer and not _is_ignorable_404(path) and cond: 92 96 ua = request.META.get('HTTP_USER_AGENT', '<none>') 93 97 ip = request.META.get('REMOTE_ADDR', '<none>') 94 98 mail_managers("Broken %slink on %s" % ((is_internal and 'INTERNAL ' or ''), domain),