[wp-trac] [WordPress Trac] #15244: Cut cropped filename
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 28 21:17:20 UTC 2010
#15244: Cut cropped filename
--------------------------+-------------------------------------------------
Reporter: charlie_hun | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 3.0.1
Severity: normal | Keywords: file upload
--------------------------+-------------------------------------------------
Changes (by charlie_hun):
* cc: janos@… (added)
* keywords: => file upload
* version: => 3.0.1
* component: General => Upload
Comment:
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:
-rw-rw-rw- 1 lighttpd lighttpd 160K Oct 28 23:05 Írás.jpg
-rw-rw-rw- 1 lighttpd lighttpd 34K Oct 28 23:05 rás-610x265.jpg
-rw-rw-rw- 1 lighttpd lighttpd 56K Oct 28 23:05 rás-610x457.jpg
-rw-rw-rw- 1 lighttpd lighttpd 44K Oct 28 23:05 rás-940x198.jpg
In the database:
wp_post table:
{{{
(130, 2, '2010-10-28 23:05:10', '2010-10-28 21:05:10', '', 'Írás', '',
'inherit', 'open', 'open', '', 'iras', '', '', '2010-10-28 23:05:10',
'2010-10-28 21:05:10', '', 126,
'http://teszt.blogolj.net/files/2010/10/Írás.jpg', 0, 'attachment',
'image/jpeg', 0);
}}}
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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15244#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list