diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-11-14 11:14:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 11:14:13 +0100 |
commit | 6ea4ef952185198e72d7ae7fadb21571ee355c9a (patch) | |
tree | 438494dbc678a54268d2097d654760ef4e55a0f8 /lib/private/Notification/Notification.php | |
parent | 81ea283752aec200c17dded4aa1abf1b817f0910 (diff) | |
download | nextcloud-server-6ea4ef952185198e72d7ae7fadb21571ee355c9a.tar.gz nextcloud-server-6ea4ef952185198e72d7ae7fadb21571ee355c9a.zip |
Revert "Appropriate length check in Notification.php"
Diffstat (limited to 'lib/private/Notification/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; |