Fix CVE-2008-5991

Fixes a Local File Inclusion security bug, marked as CVE-2008-5991
Merge pull request #5 from endelwar/CVE-2008-5991

Fix CVE-2008-5991 - Thanks!