PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Sat Oct 14, 2006 10:11 am
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?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Oct 14, 2006 11:35 am
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Sat Oct 14, 2006 4:54 pm
Thanks for the tip Feyd.