I am doing something bad. I have a configuration file that is named via a CGI parameter. This file is config1 and I detaint it.
Now I open config1 and read another filename from it - config2. config2 I trust, because if someone has been able to edit config1 they've already breached my security. So I do this:
I realize this is kind of bad - is there a way someone can suggest to do this better? Or set my mind at ease and say there's no problem here ;P
thanks