Handle permissions-errors for wikis requiring login or whatever

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@916 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
nemobis 11 years ago
parent 2bdf8da30c
commit 034866a32e

@ -959,7 +959,7 @@ def checkIndexphp(indexphp, config={}):
f.close()
delay(config=config)
print 'Checking index.php...', indexphp
if re.search(r'Special:Badtitle</a>', raw) and not config['cookies']: # Workaround for issue 71
if re.search(r'(Special:Badtitle</a>|class="permissions-errors")', raw) and not config['cookies']: # Workaround for issue 71
print "ERROR: This wiki requires login and we are not authenticated"
return False
if re.search(r'(This wiki is powered by|<h2 id="mw-version-license">|meta name="generator" content="MediaWiki)', raw):

Loading…
Cancel
Save