Jump to content

Pagefile.php changing filenames


MarcC
 Share

Recommended Posts

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 course

the 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...