From 81079fe5226bc88b523d65a9e08d4eec6f6a2870 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)