From 199704458943246108f6aded720337b6ecdde0ab Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 2 Jan 2011 11:10:46 -0800 Subject: [PATCH] execution protection on discovery.php --- lib/discovery.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/discovery.php b/lib/discovery.php index c66790c1d9..d67ec94f00 100644 --- a/lib/discovery.php +++ b/lib/discovery.php @@ -28,6 +28,10 @@ * @link http://status.net/ */ +if (!defined('STATUSNET')) { + exit(1); +} + /** * This class implements LRDD-based service discovery based on the "Hammer Draft" * (including webfinger) -- 2.39.5