mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
- cast categoryid to int instead of sanitizeString()
This commit is contained in:
parent
bbb8e4cd04
commit
112d2b4f0d
|
@ -92,7 +92,7 @@ else if ($action == "editcategory") {
|
||||||
//Kategorie bearbeiten: Neue Stichwortliste ----------------------------------------------------------
|
//Kategorie bearbeiten: Neue Stichwortliste ----------------------------------------------------------
|
||||||
else if ($action == "newkeywords") {
|
else if ($action == "newkeywords") {
|
||||||
|
|
||||||
$categoryid = sanitizeString($_GET["categoryid"]);
|
$categoryid = (int) $_GET["categoryid"];
|
||||||
$category = $dms->getKeywordCategory($categoryid);
|
$category = $dms->getKeywordCategory($categoryid);
|
||||||
$owner = $category->getOwner();
|
$owner = $category->getOwner();
|
||||||
if (!$owner->isAdmin()) {
|
if (!$owner->isAdmin()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user