Re: ImageCreateFromJPEG fails if path contains apostrophe ?



tim.landgraf@xxxxxxxxxxxxxx wrote:
if there is a file
with an apostrophe in it the GD function @ImageCreateFromJPEG fails.
anyone knows this problem and possible workarounds?

Since you are passing the path of the file using GET variables, you may be a victim of "magic quotes". See:
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
http://www.php.net/manual/en/function.stripslashes.php

To be sure, echo the filename and see if it is correct.
.