From 7779045096e438c99769997a1bba5e9048b3ec8c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 12 Jan 2011 12:34:47 -0700 Subject: [PATCH] sanity check --- chora/commit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.11.0