[dokuwiki] Bug 2377 (Non-ASCII-Filenames are not shown in media list)

  • From: Dennis Ploeger <develop@xxxxxxxxxxxxxx>
  • To: "dokuwiki@xxxxxxxxxxxxx" <dokuwiki@xxxxxxxxxxxxx>
  • Date: Mon, 28 Nov 2011 09:46:48 +0100

Hi!

I want to draw your attention to

http://bugs.dokuwiki.org/index.php?do=details&task_id=2377

A user tried to upload a file with a filename consisting only of 
non-ASCII-characters. We replace multiple non-ASCII-filenames with an 
underscore, resulting in a filename of

_.jpg

for this file.

BUT, in line 33 of inc/search.php we sort all filenames starting with "_" out 
of our search results, so the file isn't shown.

I need a decision on how to deal with these files. I would propose on of the 
following things:

  * replace a file named "_.<whatever>" with "NON_ASCII.<whatever>" or something
  * Ask the user to give a proper filename
  * Show a warning in the file uploader, that this name is not valid and she/he 
should manually replace the filename.

Kind regards
Dennis
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] Bug 2377 (Non-ASCII-Filenames are not shown in media list) - Dennis Ploeger