From: Evan Prodromou Date: Sun, 2 Jan 2011 19:10:46 +0000 (-0800) Subject: execution protection on discovery.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a54919d1f32d936d108b166b0b61ec31fbbb172;p=quix0rs-gnu-social.git execution protection on discovery.php --- 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)