WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49385, comment 1


Ignore:
Timestamp:
02/07/2020 06:41:13 PM (9 months ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49385, comment 1

    initial v1  
    11This bug exists because PHPs `parse_url()` function apparently does not consider `webcal` a valid scheme, even though WordPress does.
    22
    3 Inside `WP_Http::request()`, `parse_url()` is used on the `webcal://` url, which does not return a scheme.
     3Inside `WP_Http::request()`, `parse_url()` is used on the `webcal://` url, which does not return a scheme:
     4
     5{{{
     6array (size=2)
     7  'host' => string 'p41-caldav.icloud.com' (length=21)
     8  'path' => string '/published/2/AAAAAAAAAAAAAAAAAAAAAF-eqSypTVlehAPwNTiPeHHBkTEvCi1qK6G4LDcU1Fr6AKLM-yaJrbRrhSSGMrjSbAxJZJ6TibzOCKLh0xBSpKI' (length=120)
     9}}}
    410
    511`$arrURL['scheme']` ends up being empty, and a `WP_Error()` is returned.