do not add files that are empty and have no name
[phorkie.git] / www / fork.php
index 6bec5f03bd0cba3f5cf76ee0416a666519fa2761..f6ec95a5ac1549b6732e3cd482a555a5ddc816ba 100644 (file)
@@ -4,6 +4,11 @@
  */
 namespace Phorkie;
 require_once 'www-header.php';
+
+if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
+    throw new Exception_Input('Forking only possible via POST');
+}
+
 $repo = new Repository();
 $repo->loadFromRequest();