Opened 16 years ago
Closed 14 years ago
#15244 closed defect (bug) (duplicate)
Cut cropped filename
| Reported by: | charlie_hun | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Upload | Version: | 3.0.1 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
If I upload file, when nam start with Í
Attachments (1)
Change History (5)
#2
follow-up:
↓ 3
@
16 years ago
- Keywords reporter-feedback added
- Milestone Awaiting Review → Future Release
What operating system are you uploading from, and what operating system is your server using?
I cannot reproduce uploading from OS X to OS X under PHP 5.3.4 with a file named Írás.jpg:
chr( 195 ) . chr( 141 ) . chr( 114 ) . chr( 195 ) . chr( 161 ) . chr( 115 ) . '.jpg'
#3
in reply to: ↑ 2
@
16 years ago
Hi,
I found this bug with Linux (Kubuntu) and Windows 7 client with and without flash upload.
I use Linux in my server, but I probe this bug with some (free and paid) hosting (like: dotroll.com, godaddy)
Replying to mdawaffe:
What operating system are you uploading from, and what operating system is your server using?
I cannot reproduce uploading from OS X to OS X under PHP 5.3.4 with a file named Írás.jpg:
chr( 195 ) . chr( 141 ) . chr( 114 ) . chr( 195 ) . chr( 161 ) . chr( 115 ) . '.jpg'
#4
@
14 years ago
- Keywords file upload removed
- Milestone Future Release
- Resolution → duplicate
- Status new → closed
I could not reproduce the missing character in thumbnail names (as shown in comment:1) in current trunk on Linux with PHP 5.2.17 (on Windows it's more complicated, see ticket:15955:11).
Going to close as a duplicate of #21217. Feel free to reopen if there's still a problem not covered there.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
If I upload file, when nam start with Í (http://en.wikipedia.org/wiki/%C3%8D), like Írás.png, missing the Í characte the wordpress created cropped file name.
Eq.:
I upload file Írás.png. And I saw this in the filesystem:
In the database:
wp_post table:
wp_postmeta
(109, 130, '_wp_attached_file', '2010/10/Írás.jpg'), (110, 130, '_wp_attachment_metadata', 'a:6:{s:5:"width";s:4:"1024";s:6:"height";s:3:"768";s:14:"hwstring_small";s:23:"height=''96'' width=''128''";s:4:"file";s:18:"2010/10/Írás.jpg";s:5:"sizes";a:3:{s:9:"thumbnail";a:3:{s:4:"file";s:16:"rás-610x265.jpg";s:5:"width";s:3:"610";s:6:"height";s:3:"265";}s:6:"medium";a:3:{s:4:"file";s:16:"rás-610x457.jpg";s:5:"width";s:3:"610";s:6:"height";s:3:"457";}s:14:"post-thumbnail";a:3:{s:4:"file";s:16:"rás-940x198.jpg";s:5:"width";s:3:"940";s:6:"height";s:3:"198";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"5";s:6:"credit";s:0:"";s:6:"camera";s:15:"FinePix S8000fd";s:7:"caption";s:0:"";s:17:"created_timestamp";s:10:"1247594513";s:9:"copyright";s:0:"";s:12:"focal_length";s:3:"7.1";s:3:"iso";s:2:"64";s:13:"shutter_speed";s:16:"0.00285714285714";s:5:"title";s:0:"";}}');I probe this bug
109, 130, '_wp_attached_file', '2010/10/Írás.jpg'), (110, 130, '_wp_attachment_metadata', 'a:6:{s:5:"width";s:4:"1024";s:6:"height";s:3:"768";s:14:"hwstring_small";s:23:"height=''96'' width=''128''";s:4:"file";s:18:"2010/10/Írás.jpg";s:5:"sizes";a:3:{s:9:"thumbnail";a:3:{s:4:"file";s:16:"rás-610x265.jpg";s:5:"width";s:3:"610";s:6:"height";s:3:"265";}s:6:"medium";a:3:{s:4:"file";s:16:"rás-610x457.jpg";s:5:"width";s:3:"610";s:6:"height";s:3:"457";}s:14:"post-thumbnail";a:3:{s:4:"file";s:16:"rás-940x198.jpg";s:5:"width";s:3:"940";s:6:"height";s:3:"198";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"5";s:6:"credit";s:0:"";s:6:"camera";s:15:"FinePix S8000fd";s:7:"caption";s:0:"";s:17:"created_timestamp";s:10:"1247594513";s:9:"copyright";s:0:"";s:12:"focal_length";s:3:"7.1";s:3:"iso";s:2:"64";s:13:"shutter_speed";s:16:"0.00285714285714";s:5:"title";s:0:"";}}');I found this bug in WordPress, when use Apache+mod_php, Apache+FastCGI+PHP, Lighttpd+FastCGI+PHP, with php version 5.2.14 and 5.3.3