[wp-trac] [WordPress Trac] #62995: Uploading Mac screenshots results in broken images, due to question marks inserted in filenames
WordPress Trac
noreply at wordpress.org
Thu Jun 26 17:15:33 UTC 2025
#62995: Uploading Mac screenshots results in broken images, due to question marks
inserted in filenames
-------------------------------+------------------------------
Reporter: room34 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: administration
-------------------------------+------------------------------
Comment (by room34):
Replying to [comment:10 dmsnell]:
> > For obvious reasons, there should never be a question mark in
filenames in the Media Library.
>
> As a side mention, I would pose that it’s not obvious that questions
marks should be disallowed, or any character other than the ASCII “/”,
since that is used across various filesystems as the path separator.
>
> HTML has always supported URLs with arbitrary characters in them, so I
think there are two issues at play.
I would respectfully disagree with this, since like the `/`, the `?` also
plays a specific function in URLs. You can't have a question mark in a
filename in a URL unless you escape it. Better just to not support it at
all, I think.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62995#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list