Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.
I've written an index.php that includes a header, footer, site navigation, and also content that is selected by a variable named view. I'm not really too sure if my code is safe or not. GPC_Magic_Quotes is enabled. I have posted the relevant code below. Please let me know if there are any security issues with this, and what? Your help is appreciated, thank you.
I don't see any security issues with it. You may want to break out of the foreach loop on the first match though, otherwise $content will probably get set back to home.php
astions wrote:I don't see any security issues with it. You may want to break out of the foreach loop on the first match though, otherwise $content will probably get set back to home.php