From f78f9280b9029aaf6d92a2e3fe0ce84d84e25e2b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 8 Sep 2017 15:38:23 +0200 Subject: [PATCH] draft pid to path fix --- Admin/Installer.php | 2 +- info.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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",