Fix CVE-2008-5991

Fixes a Local File Inclusion security bug, marked as CVE-2008-5991