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

Martin Kutschker masi-no at spam-typo3.org
Wed Oct 29 09:40:12 CET 2008


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.

Masi


More information about the TYPO3-team-core mailing list