Closed (won't fix)
Project:
IMCE
Version:
4.7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2006 at 16:12 UTC
Updated:
22 Dec 2006 at 20:08 UTC
When I try to upload a file that its name begins with a non-ascii character (for example, a hebrew character, like 'א', but it's the same for german), I get the message the filename is invalid.
This is cause by basename() php function not recognizing these characters and actually deleting them. This is a known bug in PHP that was recently fixed (http://bugs.php.net/bug.php?id=37945).
However, it is easy to workaround this, replacing basename with preg_replace, and changing another character replacement a few lines below.
| Comment | File | Size | Author |
|---|---|---|---|
| imce.patch | 1.18 KB | yhager |
Comments
Comment #1
ufku commentedThanks for the patch. However, it doesnt seem to be a good idea to replace basename functions with alternatives through the script. There are 2(plus many that are invoked from the core) in 4.7 and much more in 5th version. Moreover, drupal core is full of these functions and i dont think they will replace all these with alternatives. I may reconsider this issue if any development occurs regarding the drupal core.
Comment #2
ufku commentedthis wont fix.
solution: rename your files or upgrade your php application.