dovito | 5 Jun 2011 04:21

Php image renaming

I have a script for image upload and rename. Anytime I try to rename a
image with a name contaning an apostrophe I get something wrong. For
Exemple if I want to rename a image from "dream" to "dream's"  I get
an error. Can someone help? Thank you!

Charles Galpin | 5 Jun 2011 16:06
Favicon

Re: Php image renaming

You need to escape the apostrophe's in the user input. But you need to do other checks as well to make sure they
don't use malicious input to compromise your system.

hth
charles

On Jun 4, 2011, at 10:21 PM, dovito wrote:

> I have a script for image upload and rename. Anytime I try to rename a
> image with a name contaning an apostrophe I get something wrong. For
> Exemple if I want to rename a image from "dream" to "dream's"  I get
> an error. Can someone help? Thank you!


Gmane