[wp-trac] [WordPress Trac] #37733: `cURL error 3: malformed` for remote requests since 4.6
WordPress Trac
noreply at wordpress.org
Wed Sep 14 18:12:54 UTC 2016
#37733: `cURL error 3: malformed` for remote requests since 4.6
--------------------------------------------------+-----------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6.1
Component: HTTP API | Version: 4.6
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests fixed-major | Focuses:
--------------------------------------------------+-----------------------
Comment (by cklosows):
I believe the goal here was to strip `//` from the path of URLs down to a
single `/` however, it's also affecting any query string parameters, as
seen in this example from the EDD Software Licensing parameters sent:
{{{
/app/public/wp-includes/class-http.php:368:string
'https://www.example.com?edd_action=activate_license&license=<redacted>&item_name=<redacted>&url=http:/one.submulti.dev'
(length=151)
}}}
The Domain requesting the activation is `http://one.submulti.dev`, but the
regex is stripping the additional slash here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37733#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list