Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Feed Item addEnclosure doesn't encode spaces in URLs #4839
The function in Feed.php called addEnclosure doesn't encode spaces in URLs.
I've therefore had to hack the core to get this to ensure the URLs don't contain spaces. Many integration scripts like the very popular RSS Graffiti for Facebook RSS auto-posting, cannot handle the spaces, so therefore it doesn't attach the image to the auto-post to FB.
The clients will never stop learning to remove spaces as they think it's ok and it's windows, so there is no making sure they unlearn that behaviour.
'url' => $this->Environment->base . str_replace(' ', '%20', $strFile),