MarcC Posted June 4, 2012 Share Posted June 4, 2012 Had a little error crop up today...posting attachments to the site via POP3 email retrieval... Pagefile.php line 88 $filename = str_replace(' ', '%20', trim($filename)); About which my partner in crime says: You can't just freaking change the filename I passed in!! Of coursethe system copy command isn't going to be able to find a file by that new name, because that's not the name of my damn file--my filename had spaces, not %20s. Maybe Ryan already fixed this in a future version, but in the meantime I will remove spaces myself so that this doesn't happen.. Thoughts? Link to comment Share on other sites More sharing options...
ryan Posted June 6, 2012 Share Posted June 6, 2012 Not sure about this one. Another user had requested that we add that str_replace(' ', '%20', $filename) in the past because it apparently wasn't working without it on filenames that have spaces (and that's why it's there). Sounds like this behavior may depend on the environment. I would never think to use spaces in filenames for anything like this, so can't say as though I know exactly how to tailor this to everyone. But I've added another check in there and pushed it to the source. Though not sure if this will help in this particular situation or not. Either way I recommend avoiding filenames with spaces as that's not very portable. But give the update a try and let me know if it makes any difference here. Link to comment Share on other sites More sharing options...
MarcC Posted June 11, 2012 Author Share Posted June 11, 2012 Thanks for adding that check, Ryan. It looks like that should work just fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now