From: Michael M Slusarz Date: Wed, 12 Jan 2011 19:34:47 +0000 (-0700) Subject: sanity check X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7779045096e438c99769997a1bba5e9048b3ec8c;p=horde.git sanity check --- diff --git a/chora/commit.php b/chora/commit.php index 4d8b1e5d0..e30e64ca2 100644 --- a/chora/commit.php +++ b/chora/commit.php @@ -21,7 +21,10 @@ if (!$GLOBALS['VC']->hasFeature('patchsets')) { Chora::url('browsedir', $where)->redirect(); } -$commit_id = Horde_Util::getFormData('commit'); +if (!($commit_id = Horde_Util::getFormData('commit'))) { + Chora::fatal(_("No commit ID given")); +} + $title = sprintf(_("Commit %s"), $commit_id); try {