Easy to understand:
DOKU_URL =
http://server/path-to/wiki/
DOKU_BASE = /path-to/wiki/
and in the uploadmail.txt message file @MEDIA@ gets replaced :
@MEDIA@ = DOKU_URL.ml($id,'',true,'&')
with function ml(...) saying:
$xlink = DOKU_BASE;
thus we end with DOKU_URL.DOKU_BASE... i.e.
http://server/path-to/wiki//path-to/wiki/...
diff -r a715d55b2de9 inc/common.php
--- a/inc/common.php Wed Jun 13 18:40:15 2007 +0000
+++ b/inc/common.php Wed Jun 13 21:31:42 2007 +0200
@@ -376,7 +376,7 @@ function ml($id='',$more='',$direct=true
$more = str_replace(',',$sep,$more);
}
- $xlink = DOKU_BASE;
+ $xlink = '';
// external URLs are always direct without rewriting
if(preg_match('#^(https?|ftp)://#i',$id)){
Needs testing.