allow inifinite recursion in CGI script

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3417 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2006-08-07 22:18:31 +00:00
parent 3ac54ced7e
commit 9d15f9a8be
5 changed files with 14 additions and 1 deletions

View file

@ -9,6 +9,12 @@
Type: feature
Changed: linkchecker
* Allow infinite recursion in CGI script, and add a warning about
performance requirements.
Type: feature
Changed: cgi-bin/lconline/lc_cgi.html.*, linkcheck/lc_cgi.py,
doc/en/install.txt
4.2 "V for Vendetta" (released 26.7.2006)
* Drop privileges when running as root under Unix systems. Add

View file

@ -55,6 +55,7 @@ target="_top">LinkChecker</a>)
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="-1">unendlich</option>
</select>
</td>
<td>Prüfe Anker in HTML:</td>

View file

@ -48,6 +48,7 @@ target="_top">LinkChecker</a>)
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="-1">infinite</option>
</select>
</td>
<td>Check anchors in HTML:</td>

View file

@ -175,6 +175,11 @@ interface.
You can use and adjust the example HTML files in the lconline directory
to run the script.
0. Note that running LinkChecker requires CPU and memory resources.
Allowing a CGI script to execute such a program for possibly a
large number of users might deplete those resources.
Be sure to only allow access from trusted sites to this script.
1. Choose a CGI script. The simplest is lc.cgi and you need a web server
with CGI support.
The script lc.fcgi (I tested this a while ago) needs a web server

View file

@ -35,7 +35,7 @@ import linkcheck.director
_logfile = None
_supported_langs = ('de', 'fr', 'nl', 'C')
_is_level = re.compile(r'^[0123]$').match
_is_level = re.compile(r'^(0|1|2|3|-1)$').match
class FormError (StandardError):
"""