We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1560c93 + bd7a1e4 commit 10aa382Copy full SHA for 10aa382
lib/private/Notification/Notification.php
@@ -197,12 +197,12 @@ public function getDateTime(): \DateTime {
197
* @since 8.2.0 - 9.0.0: Type of $id changed to string
198
*/
199
public function setObject(string $type, string $id): INotification {
200
- if ($type === '' || isset($type[64])) {
+ if ($type === '' || mb_strlen($type) > 64) {
201
throw new \InvalidArgumentException('The given object type is invalid');
202
}
203
$this->objectType = $type;
204
205
- if ($id === '' || isset($id[64])) {
+ if ($id === '' || mb_strlen($id) > 64) {
206
throw new \InvalidArgumentException('The given object id is invalid');
207
208
$this->objectId = $id;
0 commit comments