[TYPO3-core] RFC #9632: Bug: Multiple fileuploads into folders with special characters (umlauts) not possible

Marcus Krause marcus#exp2008 at t3sec.info
Thu Oct 30 02:31:32 CET 2008


Martin Kutschker schrieb:
> Marcus Krause schrieb:
>> This is an SVN patch request.
>>
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=9632
>>
>> Branches:
>> TYPO3_4-1 & TYPO3_4-2 & trunk
>>
>> Problem:
>> JS function escape() is used to escape target-url parameter for a page
>> reload when choosing multiple fileupload. Escape() is known to not be
>> able to handle unicode characters.
>>
>> Solution:
>> Replace JS function escape() by encodeURIComponent().
>>
>> Notes:
>> Tested successfully on a utf-8 BE with FF, IE and Opera.
> 
> Please test with iso-8859-1. It' break because you only change the
> encoding but not the decoding. encodeURIComponent() will turn it's
> argument to utf-8, so you must revert this recoding on the receiving
> end. decodeURIComponent() in JS will do that for you, but in PHP you
> must do this manually.

Although folders with umlauts will only be possible to create on a utf8
backend and ['SYS']['UTF8filesystem'] config enabled, I made a patch
that converts the utf8 parameter to the current BE charset.


Marcus.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009632-rb41_v2.patch
Type: text/x-patch
Size: 3448 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081030/f67bf8c5/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009632-rb42_v2.patch
Type: text/x-patch
Size: 3658 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081030/f67bf8c5/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009632-trunk_v2.patch
Type: text/x-patch
Size: 3434 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081030/f67bf8c5/attachment-0005.bin 


More information about the TYPO3-team-core mailing list