FS#2245

https://bugs.dokuwiki.org/index.php?do=details&task_id=2245

also see commit comments.