[wp-trac] [WordPress Trac] #47889: uploading image contains special characters will return a wrong image url

WordPress Trac noreply at wordpress.org
Sat Aug 17 12:17:49 UTC 2019


#47889: uploading image contains special characters will return a wrong image url
--------------------------+------------------------------
 Reporter:  sockscap64    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> How to reproduce this bug?
> 1> ready an image, make sure it contains a special character, such as ^.
> In my case, this image file is test^image.jpg
> 2> goto page 'Upload New Media', that is './wp-admin/media-new.php'
> 3> select your image file and upload it.
> 4> in the completion list, you will see a thumbnail and the image that
> you uploaded. (see attachment )
> 5> the thumbnail is broken, and the URL of the thumbnail is
> '.../testimage.jpg'. actually, it's should be '.../test^image.jpg'

New description:

 How to reproduce this bug?
 1> ready an image, make sure it contains a special character, such as `^`.
 In my case, this image file is `test^image.jpg`
 2> goto page 'Upload New Media', that is './wp-admin/media-new.php'
 3> select your image file and upload it.
 4> in the completion list, you will see a thumbnail and the image that you
 uploaded. (see attachment )
 5> the thumbnail is broken, and the URL of the thumbnail is
 `'.../testimage.jpg'`. actually, it's should be `'.../test^image.jpg'`

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47889#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list