diff --git a/Admin/Installer.php b/Admin/Installer.php index 6911efb..f55e9b2 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -103,7 +103,7 @@ class Installer extends InstallerAbstract ); $sth->bindValue(':id', $data['id'] ?? 0, \PDO::PARAM_INT); - $sth->bindValue(':pid', $data['pid'] ?? '', \PDO::PARAM_STR); + $sth->bindValue(':pid', sha1(str_replace('/', '', $data['pid'] ?? ''), \PDO::PARAM_STR); $sth->bindValue(':name', $data['name'] ?? '', \PDO::PARAM_STR); $sth->bindValue(':type', $data['type'] ?? 1, \PDO::PARAM_INT); $sth->bindValue(':subtype', $data['subtype'] ?? 2, \PDO::PARAM_INT); diff --git a/info.json b/info.json index de8f9ed..5be4b9c 100644 --- a/info.json +++ b/info.json @@ -25,8 +25,7 @@ "load": [ { "pid": [ - "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", - "40a630e157504605e40ba241f6b1f78ab1dd97b9" + "/backend" ], "type": 4, "for": "Content",