adjust linkmatcher pattern to prevent recursion limit errors

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@399 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-04-27 12:15:35 +00:00
parent d25cb82234
commit dbc724e644
4 changed files with 13 additions and 9 deletions

8
debian/changelog vendored
View file

@ -1,10 +1,14 @@
linkchecker (1.4.2) unstable; urgency=low
* move DNS package into linkchecker to prevent clash with the original
Python DNS module (Closes: #143737)
Python DNS module (Closes: #143737).
* Updated german translation.
* Adjust the internal error message slightly to ask for commandline
parameters.
* linkcheck/UrlData.py: modify the linkmatcher pattern to prevent a
RuntimeError: maximum recursion limit exceeded.
-- Bastian Kleineidam <calvin@debian.org> Sat, 27 Apr 2002 11:59:32 +0200
-- Bastian Kleineidam <calvin@debian.org> Sat, 27 Apr 2002 14:14:50 +0200
linkchecker (1.4.1) unstable; urgency=low

View file

@ -28,8 +28,8 @@ App = AppName+" "+Version
UserAgent = AppName+"/"+Version
Author = _linkchecker_configdata.author
HtmlAuthor = Author.replace(' ', '&nbsp;')
Copyright = "Copyright © 2000,2001 by "+Author
HtmlCopyright = "Copyright &copy; 2000,2001 by "+HtmlAuthor
Copyright = "Copyright © 2000-2002 "+Author
HtmlCopyright = "Copyright &copy; 2000-2002 "+HtmlAuthor
AppInfo = App+" "+Copyright
HtmlAppInfo = App+", "+HtmlCopyright
Url = _linkchecker_configdata.url

View file

@ -77,16 +77,16 @@ _linkMatcher = r"""
\s* # whitespace
%s # tag name
\s+ # whitespace
[^>]*? # skip leading attributes (fails on Python 2.2b2)
([^"'>]|"[^"]"|'[^']')*? # skip leading attributes
%s # attrib name
\s* # whitespace
= # equal sign
\s* # whitespace
(?P<value> # attribute value
".*?" | # in double quotes
'.*?' | # in single quotes
"[^"]*" | # in double quotes
'[^']*' | # in single quotes
[^\s>]+) # unquoted
([^">]|".*?")* # skip trailing attributes
([^"'>]|"[^"]"|'[^']')* # skip trailing attributes
> # close tag
"""

View file

@ -154,7 +154,7 @@ o a (Fast)CGI web interface (requires HTTP server)
""",
distclass = MyDistribution,
cmdclass = {'install': MyInstall},
packages = ['','linkcheck'],
packages = ['', 'linkcheck', 'linkcheck.DNS'],
scripts = ['linkchecker'],
data_files = [
('share/locale/de/LC_MESSAGES',