[wp-trac] [WordPress Trac] #23605: esc_url() strips spaces instead of encoding them
WordPress Trac
noreply at wordpress.org
Wed Feb 27 21:02:12 UTC 2013
#23605: esc_url() strips spaces instead of encoding them
--------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by jscampbell.05):
I would quite like this fixed as it is driving me mad, I have resorted for
the moment using a str_replace on the string in a custom function I wrote.
My function goes like this:
{{{
function jc_encode_spaces($string){
return str_replace(' ', '%20', $string);
}
}}}
Not Idea but it does the job
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23605#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list