Small sanity improvement
This commit is contained in:
parent
3fc3a558bb
commit
1c9bb0a3d8
1 changed files with 6 additions and 0 deletions
|
@ -69,6 +69,12 @@ if (isset($_GET["action"]) && !isset($_GET["error"])) {
|
|||
redirect_and_die("repositories.php", $_GET);
|
||||
}
|
||||
|
||||
foreach($_GET["delete"] as $repo) {
|
||||
if (!in_array($repo, $debian_repos)) {
|
||||
redirect_and_die("repositories.php", array("error" => "invalid-repo"));
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["confirm"])) {
|
||||
delete_debian_repos($_GET["delete"]);
|
||||
redirect_and_die("repositories.php");
|
||||
|
|
Loading…
Reference in a new issue