Changes between Initial Version and Version 1 of Ticket #49385, comment 1
- Timestamp:
- 02/07/2020 06:41:13 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #49385, comment 1
initial v1 1 1 This bug exists because PHPs `parse_url()` function apparently does not consider `webcal` a valid scheme, even though WordPress does. 2 2 3 Inside `WP_Http::request()`, `parse_url()` is used on the `webcal://` url, which does not return a scheme. 3 Inside `WP_Http::request()`, `parse_url()` is used on the `webcal://` url, which does not return a scheme: 4 5 {{{ 6 array (size=2) 7 'host' => string 'p41-caldav.icloud.com' (length=21) 8 'path' => string '/published/2/AAAAAAAAAAAAAAAAAAAAAF-eqSypTVlehAPwNTiPeHHBkTEvCi1qK6G4LDcU1Fr6AKLM-yaJrbRrhSSGMrjSbAxJZJ6TibzOCKLh0xBSpKI' (length=120) 9 }}} 4 10 5 11 `$arrURL['scheme']` ends up being empty, and a `WP_Error()` is returned.