From c9cebd79da1c32fa1c4d10790e948c405bcd11a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Tue, 23 Nov 2021 12:51:57 +0100 Subject: [PATCH] IBX-1516: Enforced strict comparison between Limitation & Location path strings --- eZ/Publish/Core/Limitation/SubtreeLimitationType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Publish/Core/Limitation/SubtreeLimitationType.php b/eZ/Publish/Core/Limitation/SubtreeLimitationType.php index 6fc1872d3d..6a856ad40a 100644 --- a/eZ/Publish/Core/Limitation/SubtreeLimitationType.php +++ b/eZ/Publish/Core/Limitation/SubtreeLimitationType.php @@ -74,7 +74,7 @@ public function validate(APILimitationValue $limitationValue) } catch (APINotFoundException $e) { } - if (!isset($spiLocation) || strpos($spiLocation->pathString, $path) !== 0) { + if (!isset($spiLocation) || $spiLocation->pathString !== $path) { $validationErrors[] = new ValidationError( "limitationValues[%key%] => '%value%' does not exist in the backend", null,