sanity check
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Jan 2011 19:34:47 +0000 (12:34 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 12 Jan 2011 20:18:02 +0000 (13:18 -0700)
chora/commit.php

index 4d8b1e5..e30e64c 100644 (file)
@@ -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 {