Jump to content

Is $_FILES[...]['name'] affected by magic_quotes_gpc?


Kieran Menor

Recommended Posts

Boy is it affected, badly. Under the latest php5.3.x on Windows (this could be a php/Apache under Windows problem, again), magic_quotes_gpc being ON truncates everything up to and including the single quote in an uploaded filename. With magic_quotes_gpc OFF, the same file name is passed correctly. Confirmed using var_dump($_FILES[...]['name']);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.