No, it's not invalid, those are the actual filenames received from a glob.
So you're saying I need to make ANOTHER function that just changes spaces
into %20 's ? Rather absurd dont you think? If you're going to escape
other characters and make them valid why not the space?
- Phil
----- Original Message -----
From: "Andrew Nacin" <[email protected]>
To: <[email protected]>
Sent: Monday, May 17, 2010 10:43 PM
Subject: Re: [wp-testers] function clean_url, esc_url, urlencode
clean_url and esc_url are the same function. In 3.0, esc_url is considered
canonical and clean_url is officially deprecated.
esc_url makes sure it is a valid URL, and escaped for output, generally
into
an HTML attribute. Its job is to ensure that the URL is safe, thus
eliminating XSS attack vectors.
In this case, the URL you are passing is technically invalid. You must
encode the spaces yourself.
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers