diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-11-14 12:49:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 12:49:52 +0100 |
commit | 3de4f8fc6e9b9e7ca69ba7c9e1530c67d2f81659 (patch) | |
tree | c49dde9f62b7d54b1b5f00eb775a81403ddf0d05 | |
parent | 8720abf5239ca377bb74171da83833ad9c7749c0 (diff) | |
parent | 36ea2748becd25b5c2f6817d0359726140a2adf4 (diff) | |
download | nextcloud-server-3de4f8fc6e9b9e7ca69ba7c9e1530c67d2f81659.tar.gz nextcloud-server-3de4f8fc6e9b9e7ca69ba7c9e1530c67d2f81659.zip |
Merge pull request #35140 from nextcloud/revert-35113-backport/35015/stable24
Revert "[stable24] Appropriate length check in Notification.php"
-rw-r--r-- | lib/private/Notification/Notification.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php index add4029b616..3e5cf1d6934 100644 --- a/lib/private/Notification/Notification.php +++ b/lib/private/Notification/Notification.php @@ -197,12 +197,12 @@ class Notification implements INotification { * @since 8.2.0 - 9.0.0: Type of $id changed to string */ public function setObject(string $type, string $id): INotification { - if ($type === '' || mb_strlen($type) > 64) { + if ($type === '' || isset($type[64])) { throw new \InvalidArgumentException('The given object type is invalid'); } $this->objectType = $type; - if ($id === '' || mb_strlen($id) > 64) { + if ($id === '' || isset($id[64])) { throw new \InvalidArgumentException('The given object id is invalid'); } $this->objectId = $id; |