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