fix mailto and pass javascript links

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1328988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-04-22 22:53:20 +00:00
parent d4550d9277
commit 6e9dade5d8
1 changed files with 4 additions and 1 deletions

View File

@ -167,13 +167,16 @@ def checkAll(dirName):
print print
print fullPath print fullPath
print ' BAD EXTERNAL LINK: %s' % link print ' BAD EXTERNAL LINK: %s' % link
elif link.startswith('mailto://'): elif link.startswith('mailto:'):
if link.find('@lucene.apache.org') == -1 and link.find('@apache.org') != -1: if link.find('@lucene.apache.org') == -1 and link.find('@apache.org') != -1:
if not printed: if not printed:
printed = True printed = True
print print
print fullPath print fullPath
print ' BROKEN MAILTO (?): %s' % link print ' BROKEN MAILTO (?): %s' % link
elif link.startswith('javascript:'):
# ok...?
pass
elif link not in allFiles: elif link not in allFiles:
# We only load HTML... so if the link is another resource (eg # We only load HTML... so if the link is another resource (eg
# SweetSpotSimilarity refs # SweetSpotSimilarity refs