Menu

#854 Host name correction expects 'www.isfdb.org'

v1.0 (example)
open
nobody
None
5
2026-05-14
2026-05-14
Ahasuerus
No

The host name correction logic (ISFDBHostCorrection in common/library.py) expects 'www.isfdb.org' and doesn't account for the fact that we also support "isfdb.org" (without the leading "www.") as of 2022. The following code has been proposed as a replacement for the current function:

def ISFDBHostCorrection(value, mode = 'start'):
# Replace www.isfdb.org with the current host/Wiki location and adjust http/https
if not value:
return value
if mode == 'start':
value = re.sub(r'^https?://(www.)?isfdb.org/wiki/', '%s://%s/' % (PROTOCOL, WIKILOC), value)
elif mode == 'all':
value = re.sub(r'https?://(www.)?isfdb.org/wiki/', '%s://%s/' % (PROTOCOL, WIKILOC), value)

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB