﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
23187	esc_url() fails if the URL's scheme's case does not match the allowed protocol's case	mdawaffe	nacin	"Steps to reproduce:

{{{
$url = esc_url( 'HTTP://example.com' );
var_dump( $url );
}}}

Expected output:

{{{
string(18) ""http://example.com""
}}}

Actual output:

{{{
string(0) """"
}}}

From http://tools.ietf.org/html/rfc3986:

> Although schemes are case-insensitive, the canonical form is lowercase and documents that specify schemes must do so with lowercase letters.  An implementation should accept uppercase letters as equivalent to lowercase in scheme names (e.g., allow ""HTTP"" as well as ""http"") for the sake of robustness but should only produce lowercase scheme names for consistency.

Patch and unit tests attached."	defect (bug)	closed	normal	3.5.2	Formatting		normal	fixed	has-patch commit	
