https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11317

--- Comment #135 from Roch D'Amour <[email protected]> ---
Created attachment 74119
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74119&action=edit
Bug 11317: Make filename unicode-proof, renamed accessdir to access_dir and fix
db update

This patch does many small things :
- Added "INSERT IGNORE" in the atomic update
- Renamed accessdir to access_dir
- Now decode the filename to utf8 to make sure the stat() method point at it.

Test plan:
1. Define <access_dir>/tmp/koha-public</access_dir> in your koha_conf
2. change dir to /tmp/koha-public
3. create a file with a normal name, i.e. echo "bonjour koha" > testfile.txt
4. create a file with a name containing a unicode character, i.e. touch hi❤.txt
5. Go in the "Reports" section in the intranet and select "Report/log files"
6. Verify that the filename "hi❤.txt" looks fine
7. Click on the "testfile.txt" file, a download dialog should appear.
8. Download the file and verify its content. It should contain the text
"bonjour koha".

Sponsored by : CCSR

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to