From 42877b5600cee1ffeca4c4efb2a075f5e1bce056 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 21 Mar 2010 13:33:23 -0400 Subject: [PATCH] security thing --- lib/trivial.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/trivial.php b/lib/trivial.php index 9046c15..3a90a14 100644 --- a/lib/trivial.php +++ b/lib/trivial.php @@ -3,6 +3,11 @@ // If you're using a different global default layout name, change it here $layout = 'application'; +if (!isset($_SERVER['REDIRECT_URL'])) { + header('HTTP/1.1 403 Forbidden'); + exit(1); +} + // END OF USER-CONFIGURABLE SETTINGS function fe_check($path) {