Page 1 of 1

headers and rawurlencode()

Posted: Sat Oct 14, 2006 10:11 am
by neophyte
Anybody happen to know if this line should be encoded and or escaped or not?

Code: Select all

header("Content-Disposition: attachment; filename=".rawurlencode($file));
Consider that $file could be anything?

Is it a browser issue?

Posted: Sat Oct 14, 2006 11:35 am
by feyd

Posted: Sat Oct 14, 2006 4:54 pm
by neophyte
Thanks for the tip Feyd.