If "userewrite" and "useslash" are set true in conf/dokuwiki.php links to embedded internal images are wrong.
The image itself is shown but the link to the pure image is wrong.
This bug applies only to pages within a namespace.
I.e.: a page "dummy" in a namespace "something" has this URL:
http://example.com/something/dummy
embedded image: /media/something/myimg.jpg
Link to image links to:
http://example.com/something/media/something/myimg.jpg
Tested on: Win XP/Apache2, Linux/Apache1.3, Firefox+IE