[wp-trac] [WordPress Trac] #41353: Async upload breaks when there are special characters into file name
WordPress Trac
noreply at wordpress.org
Tue Jul 18 09:07:09 UTC 2017
#41353: Async upload breaks when there are special characters into file name
-------------------------------------+------------------------------
Reporter: bhargavbhandari90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.8
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses: administration
-------------------------------------+------------------------------
Comment (by bhargavbhandari90):
Replying to [comment:2 MaximeCulea]:
> Hi @bhargavbhandari90, thx for the report.
> I wonder if the issue is more "elaborate".
> To me it's the `sanitize` itself that should be done upstream to handle
special caracters, like reported in #22363.
> What do you think ?
Thanks for pointing out this.
Yes it makes sense. But why I am suggesting the current solution is
because the image was not broken into the edit image section.
So I checked the code for that into "wp-admin/includes/media.php:2740" and
at there I found that wp used `set_url-scheme`.
So for now I thought to handle this situation by the same method which is
used into that edit media section.
Give me your thought into this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41353#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list