From b8477fbdb66b4b24d391764ab5ada80196a387bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Beye?= Date: Mon, 6 Jan 2025 07:52:34 +0100 Subject: [PATCH] fix(vendor.dreame): Newer dreames may store obstacle images elsewhere --- .../dreame/capabilities/DreameObstacleImagesCapability.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/lib/robots/dreame/capabilities/DreameObstacleImagesCapability.js b/backend/lib/robots/dreame/capabilities/DreameObstacleImagesCapability.js index 4da7f7534f..afe8d0eefd 100644 --- a/backend/lib/robots/dreame/capabilities/DreameObstacleImagesCapability.js +++ b/backend/lib/robots/dreame/capabilities/DreameObstacleImagesCapability.js @@ -66,7 +66,7 @@ class DreameObstacleImagesCapability extends ObstacleImagesCapability { * @returns {Promise} */ async getStreamForImage(image) { - if (!/^\/data\/record\/\d+\.jpg$/.test(image)) { + if (!/^\/data\/record(?:\/ai_image)?\/\d+\.jpg$/.test(image)) { /* Attack scenario: someone somehow uploads a specially crafted map file containing a path for an obstacle image