automatically add file extension to new files when it has no extension
[phorkie.git] / www / fork.php
index 6bec5f03bd0cba3f5cf76ee0416a666519fa2761..cc98df0cfd80ae2ca7634e38aea43fa6471a8b2d 100644 (file)
@@ -2,8 +2,13 @@
 /**
  * Fork a repository
  */
-namespace Phorkie;
+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();