Menu ▾ ▴

#402 Post-Python 3: URL check for Wiki-hosted covers is fragile

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

When an editor submits a cover image URL, method cgi2obj in common/pubClass.py checks that the submitted URL is for the image and not the the Wiki page the image is on. The current checks says:

if value[0:41] == '%s://%s/index.php/Image' % (PROTOCOL, WIKILOC) -> error

It works correctly with the current ISFDB host name, but it may fail if the database is moved to another host. The check should be made more robust.

Discussion

Anonymous
Anonymous

Add attachments
Cancel