[wp-trac] [WordPress Trac] #55333: PHP Notice in strip_fragment_from_url() when schemeless URI is passed
WordPress Trac
noreply at wordpress.org
Wed Mar 9 15:06:23 UTC 2022
#55333: PHP Notice in strip_fragment_from_url() when schemeless URI is passed
--------------------------+-----------------------------
Reporter: dd32 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Canonical | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52833" 52833]:
{{{
#!CommitTicketReference repository="" revision="52833"
Canonical: Check if the URL scheme exists in `strip_fragment_from_url()`.
This avoids an "Undefined index" PHP notice when a schemeless URI is
passed.
Props dd32, SergeyBiryukov.
Fixes #55333.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55333#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list