This commit is contained in:
ruan 2018-03-10 10:16:46 +02:00
parent 57cb8c54e8
commit 52499677c1
No known key found for this signature in database
GPG Key ID: 0D2EC1C52E469C0B
2 changed files with 2 additions and 4 deletions

View File

@ -120,9 +120,9 @@ $type = $_GET['type'];
$id = $_GET['id'];
$page = new Page($type);
($page->type !== null) or die($page->t("info.error.type.invalid"));
($page->type !== null) or die("Unknown page type requested");
filter_var($id, FILTER_VALIDATE_INT) or die($page->t("info.error.id.invalid"));
filter_var($id, FILTER_VALIDATE_INT) or die("Invalid ID");
$id = (int)$id;

View File

@ -54,8 +54,6 @@ class DefaultLang {
$array["error.name.unseen"] = "{name} has not joined before.";
$array["error.name.invalid"] = "Invalid name.";
$array["history.error.uuid.no-result"] = "No punishments found.";
$array["info.error.type.invalid"] = "Unknown page type requested.";
$array["info.error.id.invalid"] = "Invalid ID";
$array["info.error.id.no-result"] = "Error: {type} not found in database.";
}
}