[ewiki] not-so-relevant bug

Hi!

I've decided to go for accessing uploaded files through the wiki, so the 
following poses no problem to my setup, but maybe otherone's:

When using:

define("EWIKI_DB_STORE_DIRECTORY", 'data/');
define("EWIKI_DB_STORE_URL", '/cms/'.EWIKI_DB_STORE_DIRECTORY);
include("plugins/binary_store.php");

- w/ 'data' and 'cms' naturally just being examples -

uploading works, binaries are in directory, but linking doesn't work, since 
links are <a href="/cms/data/internal%3A%2F%2F567.., i.e. the '://' of 
'internal://' is escaped, but for apache not to transform it back the '%' 
themselves need to be escaped to '%25'. 

Suggestions/To be done:

* workaround by setting 
      define("EWIKI_IDF_INTERNAL", "file_");
  i.e. binaries start out now w/ 'file_' instead of 'internal://' (don't know 
whether that works so easiliy)

* ... or rawurlencode the links (again)? Or sth along those lines.

* mention in /fragments/patches/uploadfilenames that the hack doesn't work 
when plugin "binary_store" is used. (I don't need a hint on how to 
nonetheless do it, since I went back to uploading via the wiki, as mentioned 
above.)

Solong, Timm





Other related posts: