There seems to be a problem with the codeblock-export (do=export_code) in conjunction with URL-rewrite (I'm using lighttpd with rules provided by dokuwiki).
When I have a codeblock like
<file - myfile.txt>
content
</file>
then the link is:
/_export/code/mypage?codeblock=1
which the rewrite-rule forms to:
/doku.php?do=export_code&id=mypage?codeblock=1
but the correct URL would be:
/doku.php?do=export_code&id=mypage&codeblock=1
It seems to me that the problem lies in inc/common.php:409: It appends an '?' and not the provided separator.
I attached my patch for proposal.