git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not add files that are empty and have no name
[phorkie.git]
/
www
/
fork.php
diff --git
a/www/fork.php
b/www/fork.php
index 6bec5f03bd0cba3f5cf76ee0416a666519fa2761..f6ec95a5ac1549b6732e3cd482a555a5ddc816ba 100644
(file)
--- a/
www/fork.php
+++ b/
www/fork.php
@@
-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();